Editing dhcpd.conf without corrupting leases

John Hascall john at iastate.edu
Tue Apr 14 00:47:24 UTC 2009



David W. Hankins writes:
> That is basically correct.  It's an extremely narrow window to catch
> the server between writes.  I've oft lamented we don't do the lease
> write in a single call.

Would it just be simpler to surround the writes with
  sigprocmask(SIG_BLOCK, ...);
  ...
  sigprocmask(SIG_SETMASK, ...);
in the interim?

John



More information about the dhcp-users mailing list