From 32f1c6e4679b6e0737616f3e58528531e826a3ce Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 18 Apr 2013 21:27:58 +0200 Subject: fix behaviour during sysupgrade Signed-off-by: John Crispin --- hotplug.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hotplug.c') 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); +} -- cgit v1.2.3