From: Kay Sievers Date: Sat, 29 Mar 2008 16:16:41 +0000 (+0100) Subject: udevadm: trigger - fix broken socket option check X-Git-Tag: 174~1744 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52434fb98b2e8920e8e254d87ecfff2789ebd6b7;p=systemd udevadm: trigger - fix broken socket option check --- diff --git a/udevtrigger.c b/udevtrigger.c index 7584e02a..cebc518c 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);