udev-event: fix condition to create pipe fds

The bug was introduced by feaa6db7ac.
This commit is contained in:
Yu Watanabe
2018-10-24 04:46:48 +09:00
parent f71e8ec10e
commit 2e48548fed
+1 -1
View File
@@ -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);