diff options
author | imp <imp@FreeBSD.org> | 2010-06-29 03:52:12 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-06-29 03:52:12 +0000 |
commit | 93e0327a90dc02fd0242bd342897292a8f275f4f (patch) | |
tree | 1ae9808d688d1218eacfccedbe478811b98dcb84 /sbin/devd/devd.hh | |
parent | ebed8715b65d342ce6fcff454c3ed50e4d4cd44d (diff) | |
download | FreeBSD-src-93e0327a90dc02fd0242bd342897292a8f275f4f.zip FreeBSD-src-93e0327a90dc02fd0242bd342897292a8f275f4f.tar.gz |
Expand system into my_system, and add the necessary tidyness that we
need. Close the pidfile. Then close all descriptors >= 3 to avoid
information leakage to children.
This solves the problem of not being able to restart devd when you
have, for example, a dhclient forked to configure your network...
MFC after: 3 days
Diffstat (limited to 'sbin/devd/devd.hh')
-rw-r--r-- | sbin/devd/devd.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/devd/devd.hh b/sbin/devd/devd.hh index 32d98a2..b3c98f3 100644 --- a/sbin/devd/devd.hh +++ b/sbin/devd/devd.hh @@ -153,6 +153,7 @@ public: void set_pidfile(const char *); void reset(); void parse(); + void close_pidfile(); void open_pidfile(); void write_pidfile(); void remove_pidfile(); |