]> err.no Git - systemd/commitdiff
[PATCH] correct correction for error path for PROGRAM execution
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 29 Mar 2005 02:23:56 +0000 (04:23 +0200)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:55:00 +0000 (23:55 -0700)
udev_rules.c

index 9a0ee833e2acc1d94eff59e3241d405f63b5a8d7..2b5c411d963e7af71e7e66176a8d5e27657aac4c 100644 (file)
@@ -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;