diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-18 21:27:58 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-04-23 18:54:03 +0200 |
commit | 32f1c6e4679b6e0737616f3e58528531e826a3ce (patch) | |
tree | 48c57bd9cf880799db14a75a9f5e8d603287bc08 /hotplug.c | |
parent | 9961e88dd853a30503298378679d2cedc497410e (diff) | |
download | unitd-32f1c6e4679b6e0737616f3e58528531e826a3ce.tar unitd-32f1c6e4679b6e0737616f3e58528531e826a3ce.zip |
fix behaviour during sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'hotplug.c')
-rw-r--r-- | hotplug.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -434,3 +434,9 @@ void hotplug(char *rules) queue_proc.cb = queue_proc_cb; uloop_fd_add(&hotplug_fd, ULOOP_READ); } + +void hotplug_shutdown(void) +{ + uloop_fd_delete(&hotplug_fd); + close(hotplug_fd.fd); +} |