The crude loop I wrote to come up with this changeset: find -L package/feeds/packages/ -name patches | \ sed 's/patches$/refresh/' | sort | xargs make Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
11 lines
420 B
Diff
11 lines
420 B
Diff
--- a/forkexec.c
|
|
+++ b/forkexec.c
|
|
@@ -108,7 +108,7 @@ static void sigchld_hdl(int sig)
|
|
int script_status;
|
|
pid_t pid;
|
|
|
|
- while ((pid = waitpid(WAIT_ANY, &script_status, WNOHANG)) != 0) {
|
|
+ while ((pid = waitpid(-1, &script_status, WNOHANG)) != 0) {
|
|
if(pid == -1) {
|
|
if(cfg.debug >= 9 && errno != ECHILD)
|
|
syslog(LOG_ERR, "%s: %s: %d: waitpid failed %s", __FILE__, __FUNCTION__, __LINE__, strerror(errno));
|