Mercurial > hg > toybox
diff toys/pending/find.c @ 1327:85f297591693 draft
Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 31 May 2014 12:33:24 -0500 |
parents | c99c215b4604 |
children |
line wrap: on
line diff
--- a/toys/pending/find.c Thu May 29 08:21:48 2014 -0500 +++ b/toys/pending/find.c Sat May 31 12:33:24 2014 -0500 @@ -94,7 +94,7 @@ arg_array[filter->data.e.arg_path_index] = path; } - if (!(pid = fork())) xexec(arg_array); + if (!(pid = xfork())) xexec(arg_array); free(path); waitpid(pid, &status, 0);