mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-15 02:00:50 +00:00
udevadm: trigger - fix broken socket option check
This commit is contained in:
+2
-2
@@ -235,7 +235,7 @@ static void exec_list(const char *action)
|
||||
list_for_each_entry_safe(loop_device, tmp_device, &device_list, node) {
|
||||
if (delay_device(loop_device->name))
|
||||
continue;
|
||||
if (sock)
|
||||
if (sock >= 0)
|
||||
pass_to_socket(loop_device->name, action);
|
||||
else
|
||||
trigger_uevent(loop_device->name, action);
|
||||
@@ -245,7 +245,7 @@ static void exec_list(const char *action)
|
||||
|
||||
/* trigger remaining delayed devices */
|
||||
list_for_each_entry_safe(loop_device, tmp_device, &device_list, node) {
|
||||
if (sock)
|
||||
if (sock >= 0)
|
||||
pass_to_socket(loop_device->name, action);
|
||||
else
|
||||
trigger_uevent(loop_device->name, action);
|
||||
|
||||
Reference in New Issue
Block a user