From: deraadt Date: Wed, 29 Apr 2015 06:37:14 +0000 (+0000) Subject: the non braced do while made my teeth hurt X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4412839d968417cd48850043b6079664471189d4;p=openbsd the non braced do while made my teeth hurt --- 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 @@ -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");