remove the socket when ubusd exits
authorFelix Fietkau <nbd@openwrt.org>
Sun, 6 Feb 2011 17:41:18 +0000 (18:41 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 6 Feb 2011 17:41:18 +0000 (18:41 +0100)
ubusd.c

diff --git a/ubusd.c b/ubusd.c
index 02e0086..aa74550 100644 (file)
--- a/ubusd.c
+++ b/ubusd.c
@@ -352,6 +352,7 @@ int main(int argc, char **argv)
        uloop_fd_add(&server_fd, ULOOP_READ | ULOOP_EDGE_TRIGGER);
 
        uloop_run();
+       unlink(ubus_socket);
 
 out:
        uloop_done();