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 02e0086172887a8ee14a8d3aa619d7048faf3450..aa745504162f78c28494e349283864f7e4cbd25a 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();