summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-25 02:21:07 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-25 02:21:07 +0100
commit37854ffc9ae60da66d5525225c93eb1754a780bb (patch)
treeb410a3da7e27273aa13ec08c8bee95545286c367 /udev.c
parentad27f5b3962d4cb1e4fcc25d3d0c7d0c81abc82a (diff)
let "ignore_device" always return the event successfully
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/udev.c b/udev.c
index 6387d0b14e..17ab635f1e 100644
--- a/udev.c
+++ b/udev.c
@@ -154,7 +154,7 @@ int main(int argc, char *argv[], char *envp[])
retval = udev_device_event(&rules, udev);
- if (!retval && udev_run && !list_empty(&udev->run_list)) {
+ if (retval == 0 && !udev->ignore_device && udev_run) {
struct name_entry *name_loop;
dbg("executing run list");
@@ -178,5 +178,7 @@ fail:
exit:
logging_close();
- return retval;
+ if (retval != 0)
+ return 1;
+ return 0;
}