summaryrefslogtreecommitdiffstats
path: root/hotplug.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-18 21:27:58 +0200
committerJohn Crispin <blogic@openwrt.org>2013-04-23 18:54:03 +0200
commit32f1c6e4679b6e0737616f3e58528531e826a3ce (patch)
tree48c57bd9cf880799db14a75a9f5e8d603287bc08 /hotplug.c
parent9961e88dd853a30503298378679d2cedc497410e (diff)
downloadunitd-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hotplug.c b/hotplug.c
index ac54da4..f7e2ce9 100644
--- a/hotplug.c
+++ b/hotplug.c
@@ -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);
+}