udev-event: fix condition to create pipe fds
The bug was introduced by feaa6db7ac.
This commit is contained in:
@@ -660,7 +660,7 @@ int udev_event_spawn(struct udev_event *event,
|
||||
int r;
|
||||
|
||||
/* pipes from child to parent */
|
||||
if (!result || log_get_max_level() >= LOG_INFO)
|
||||
if (result || log_get_max_level() >= LOG_INFO)
|
||||
if (pipe2(outpipe, O_NONBLOCK|O_CLOEXEC) != 0)
|
||||
return log_error_errno(errno, "Failed to create pipe for command '%s': %m", cmd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user