artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23fef5
)
the non braced do while made my teeth hurt
author
deraadt
<deraadt@openbsd.org>
Wed, 29 Apr 2015 06:37:14 +0000
(06:37 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 29 Apr 2015 06:37:14 +0000
(06:37 +0000)
usr.bin/file/sandbox.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/sandbox.c
b/usr.bin/file/sandbox.c
index
70826f6
..
b0ebb51
100644
(file)
--- a/
usr.bin/file/sandbox.c
+++ b/
usr.bin/file/sandbox.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sandbox.c,v 1.
1 2015/04/27 13:52:17 nicm
Exp $ */
+/* $OpenBSD: sandbox.c,v 1.
2 2015/04/29 06:37:14 deraadt
Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-117,9
+117,9
@@
sandbox_fork(const char *user)
return (sandbox_child(user));
}
- do
+ do
{
pid = waitpid(pid, &status, WUNTRACED);
- while (pid == -1 && errno == EINTR);
+
}
while (pid == -1 && errno == EINTR);
if (!WIFSTOPPED(status))
errx(1, "child not stopped");