summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-03-29 17:16:41 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-03-29 17:16:41 +0100
commit52434fb98b2e8920e8e254d87ecfff2789ebd6b7 (patch)
treea5265eea6e2890e2df1437c1a419827fe5b21e0a
parente18bd73b7245a6374352aafe72d0e1736227c7e1 (diff)
udevadm: trigger - fix broken socket option check
-rw-r--r--udevtrigger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevtrigger.c b/udevtrigger.c
index 7584e02a67..cebc518c43 100644
--- a/udevtrigger.c
+++ b/udevtrigger.c
@@ -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);