From: kay.sievers@vrfy.org Date: Tue, 29 Mar 2005 01:56:42 +0000 (+0200) Subject: [PATCH] correct error path for PROGRAM execution X-Git-Tag: 057~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=584d412bf0584704dc93a7a7595e273c15b3e457;p=systemd [PATCH] correct error path for PROGRAM execution --- diff --git a/udev_rules.c b/udev_rules.c index c07abb9b..9a0ee833 100644 --- a/udev_rules.c +++ b/udev_rules.c @@ -415,11 +415,13 @@ static int execute_program(struct udevice *udev, const char *path, char *value, dup2(fds[1], STDOUT_FILENO); retval = execv(arg, argv); - info(KEY_PROGRAM " execution of '%s' failed", path); - exit(1); + err(KEY_PROGRAM " execution of '%s' failed", path); + retval = -1; + break; case -1: err("fork of '%s' failed", path); - return -1; + retval = -1; + break; default: /* parent reads from fds[0] */ close(fds[1]);