From 4412839d968417cd48850043b6079664471189d4 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 29 Apr 2015 06:37:14 +0000 Subject: [PATCH] the non braced do while made my teeth hurt --- usr.bin/file/sandbox.c | 6 +++--- 1 file 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 @@ -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"); -- 2.20.1