projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb8eb88
)
Correct write() check
author
Jagger
<robert@swiecki.net>
Sun, 28 Feb 2016 15:38:10 +0000
(16:38 +0100)
committer
Jagger
<robert@swiecki.net>
Sun, 28 Feb 2016 15:38:10 +0000
(16:38 +0100)
subproc.c
patch
|
blob
|
history
diff --git
a/subproc.c
b/subproc.c
index b0776fd02c7aba882c29b85cc70d5d228a791d12..3e53cd9a2e1f9ac34444aa636c6c8da986dce15e 100644
(file)
--- a/
subproc.c
+++ b/
subproc.c
@@
-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");
}