=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/Attic/sandbox.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/file/Attic/sandbox.c 2015/04/27 13:52:17 1.1 --- src/usr.bin/file/Attic/sandbox.c 2015/04/29 06:37:14 1.2 *************** *** 1,4 **** ! /* $OpenBSD: sandbox.c,v 1.1 2015/04/27 13:52:17 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: sandbox.c,v 1.2 2015/04/29 06:37:14 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott *************** *** 117,125 **** return (sandbox_child(user)); } ! do pid = waitpid(pid, &status, WUNTRACED); ! while (pid == -1 && errno == EINTR); if (!WIFSTOPPED(status)) errx(1, "child not stopped"); --- 117,125 ---- return (sandbox_child(user)); } ! do { pid = waitpid(pid, &status, WUNTRACED); ! } while (pid == -1 && errno == EINTR); if (!WIFSTOPPED(status)) errx(1, "child not stopped");