mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-24 16:10:11 +07:00
[PATCH] correct error path for PROGRAM execution
This commit is contained in:
parent
12340f4108
commit
584d412bf0
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user