From: Kay Sievers Date: Mon, 17 Nov 2008 13:43:58 +0000 (+0100) Subject: udevd: fix cleanup of /dev/.udev/uevent_seqnum X-Git-Tag: 174~1310 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c969f8806272b9fec50eb3325727cd012ce8dd1c;p=systemd udevd: fix cleanup of /dev/.udev/uevent_seqnum --- diff --git a/udev/udevd.c b/udev/udevd.c index 08a87b03..bfd73231 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -974,21 +974,18 @@ int main(int argc, char *argv[]) event_queue_manager(udev); } } + cleanup_queue_dir(udev); rc = 0; - exit: udev_rules_unref(rules); - if (signal_pipe[READ_END] >= 0) close(signal_pipe[READ_END]); if (signal_pipe[WRITE_END] >= 0) close(signal_pipe[WRITE_END]); - udev_ctrl_unref(udev_ctrl); if (inotify_fd >= 0) close(inotify_fd); udev_monitor_unref(kernel_monitor); - cleanup_queue_dir(udev); udev_selinux_exit(udev); udev_unref(udev); logging_close();