summaryrefslogtreecommitdiff
path: root/usr.bin/file
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-04-29 06:37:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-04-29 06:37:15 +0000
commite0c9fdd9b2718ed2064cd9ab729d5e158826ba43 (patch)
tree567e0fcd230e0f5eebdea06950a3dcb1d495c210 /usr.bin/file
parente4c00c0aa5300847504d38b8dec9449a4a9a026a (diff)
the non braced do while made my teeth hurt
Diffstat (limited to 'usr.bin/file')
-rw-r--r--usr.bin/file/sandbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/file/sandbox.c b/usr.bin/file/sandbox.c
index 70826f6c8c3..b0ebb51c8ca 100644
--- 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");