chiark / gitweb /
udevd: control - no not delete socket file when --daemon is used
[elogind.git] / udev / udevd.c
index fdb3e420024f60fbba39fda60dd5179cbdc55414..60edea98e1144774ef5a5145d077aefc9d8c92b9 100644 (file)
@@ -1420,7 +1420,7 @@ int main(int argc, char *argv[])
                        goto exit;
                default:
                        rc = EXIT_SUCCESS;
                        goto exit;
                default:
                        rc = EXIT_SUCCESS;
-                       goto exit_keep_queue;
+                       goto exit_daemonize;
                }
 
                setsid();
                }
 
                setsid();
@@ -1704,7 +1704,8 @@ int main(int argc, char *argv[])
        rc = EXIT_SUCCESS;
 exit:
        udev_queue_export_cleanup(udev_queue_export);
        rc = EXIT_SUCCESS;
 exit:
        udev_queue_export_cleanup(udev_queue_export);
-exit_keep_queue:
+       udev_ctrl_cleanup(udev_ctrl);
+exit_daemonize:
        if (fd_ep >= 0)
                close(fd_ep);
        worker_list_cleanup(udev);
        if (fd_ep >= 0)
                close(fd_ep);
        worker_list_cleanup(udev);