if ((nfd = fcntl(fds[i], F_DUPFD, i+3)) < 0)
return -errno;
- assert_se(close_nointr(fds[i]));
+ assert_se(close_nointr(fds[i]) == 0);
fds[i] = nfd;
/* Hmm, the fd we wanted isn't free? Then
assert(ret);
assert(fds || n_fds <= 0);
- log_debug("About to execute %s", command->path);
+ log_debug("about to execute %s", command->path);
if ((pid = fork()) < 0)
return -errno;
_exit(r);
}
+
+ log_debug("executed %s as %llu", command->path, (unsigned long long) pid);
+
*ret = pid;
return 0;
}