=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/cmd_exec.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/make/cmd_exec.c 2010/07/19 19:46:43 1.8 --- src/usr.bin/make/cmd_exec.c 2016/03/05 13:12:12 1.9 *************** *** 1,4 **** ! /* $OpenBSD: cmd_exec.c,v 1.8 2010/07/19 19:46:43 espie Exp $ */ /* * Copyright (c) 2001 Marc Espie. * --- 1,4 ---- ! /* $OpenBSD: cmd_exec.c,v 1.9 2016/03/05 13:12:12 espie Exp $ */ /* * Copyright (c) 2001 Marc Espie. * *************** *** 107,113 **** (void)close(fds[0]); /* Wait for the child to exit. */ ! while ((pid = wait(&status)) != cpid && pid >= 0) continue; if (cc == -1) --- 107,113 ---- (void)close(fds[0]); /* Wait for the child to exit. */ ! while (waitpid(cpid, &status, 0) == -1 && errno == EINTR) continue; if (cc == -1)