summaryrefslogtreecommitdiff
path: root/udev_rules.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-29 04:23:56 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:00 -0700
commit7ff56624f84d1616470ab6cbeab17c1367e775d7 (patch)
treee2912ab4dbb0b2f0517e11aa2252262f33cd6f2b /udev_rules.c
parent584d412bf0584704dc93a7a7595e273c15b3e457 (diff)
[PATCH] correct correction for error path for PROGRAM execution
Diffstat (limited to 'udev_rules.c')
-rw-r--r--udev_rules.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/udev_rules.c b/udev_rules.c
index 9a0ee833e2..2b5c411d96 100644
--- a/udev_rules.c
+++ b/udev_rules.c
@@ -415,9 +415,8 @@ static int execute_program(struct udevice *udev, const char *path, char *value,
dup2(fds[1], STDOUT_FILENO);
retval = execv(arg, argv);
- err(KEY_PROGRAM " execution of '%s' failed", path);
- retval = -1;
- break;
+ err("exec of program failed");
+ _exit(1);
case -1:
err("fork of '%s' failed", path);
retval = -1;