[PATCH] execute program on events
Måns Rullgård
mru at inprovide.com
Tue Mar 21 22:58:55 UTC 2006
Ted Lemon <Ted.Lemon at nominum.com> writes:
> On Tuesday 21 March 2006 14:05, Måns Rullgård wrote:
>> Any comments at all on this?
>
> Historically, the reason why the DHCP server doesn't do this is
> because it's not asynchronous, so if the command hangs, the DHCP
> server hangs.
Yes, I'm perfectly aware of the potential problem. It would be up to
the admin to not run anything that might hang or delay for a long
time. Is the DHCP server supposed to protect the admin from shooting
himself in the foot?
What if the execution were made completely asynchronous? The child
process could daemonize itself before calling exec(), and the parent
server would not need to wait() for it.
What OS facilities is the dhcp code allowed to require?
--
Måns Rullgård
mru at inprovide.com
More information about the dhcp-hackers
mailing list