summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2016-05-30 16:35:34 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-30 16:35:34 +0200
commite95764ec91ace68e328bacae96a56195550d6c0e (patch)
tree3825b64fe1e68cd9edf82ec524e3a1a2d7ca541b /src/udev
parent1f7a9e8ee7ed3d0df103538cec6f8d6a5ac6e7ce (diff)
udevd: try close ctrl connection blocking socket only once when spawning a new worker (#3387)
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index e9dd2f47c7..a8ab208816 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -368,7 +368,6 @@ static void worker_spawn(Manager *manager, struct event *event) {
manager->monitor = udev_monitor_unref(manager->monitor);
manager->ctrl_conn_blocking = udev_ctrl_connection_unref(manager->ctrl_conn_blocking);
manager->ctrl = udev_ctrl_unref(manager->ctrl);
- manager->ctrl_conn_blocking = udev_ctrl_connection_unref(manager->ctrl_conn_blocking);
manager->worker_watch[READ_END] = safe_close(manager->worker_watch[READ_END]);
manager->ctrl_event = sd_event_source_unref(manager->ctrl_event);