Correct write() check
This commit is contained in:
parent
fb8eb88410
commit
d8007e15ad
@ -265,7 +265,7 @@ void subprocRunChild(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_er
|
||||
if (containInitUserNs(nsjconf, pid) == false) {
|
||||
LOG_E("Couldn't initialize user namespaces for pid %d", pid);
|
||||
}
|
||||
if (utilWriteToFd(sv[1], &subprocDoneChar, sizeof(subprocDoneChar)) == false) {
|
||||
if (utilWriteToFd(sv[1], &subprocDoneChar, sizeof(subprocDoneChar)) != sizeof(subprocDoneChar)) {
|
||||
LOG_E("Couldn't signal the new process via a socketpair");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user