From 3d3b3008e79c65581dd2d8f8f0671eda78e1b7ec Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 19 Jan 2010 13:01:45 +0000 Subject: [PATCH] Don't try to use waitpid() information on Win32. --- src/zzuf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zzuf.c b/src/zzuf.c index a9cae52..9b86731 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -801,7 +801,6 @@ static void clean_children(struct opts *opts) WTERMSIG(status), sig2name(WTERMSIG(status)), message); opts->crashes++; } -#endif else if (opts->verbose) { finfo(stderr, opts, opts->child[i].seed); @@ -811,6 +810,10 @@ static void clean_children(struct opts *opts) else fprintf(stderr, "exit %i\n", WEXITSTATUS(status)); } +#else + /* waitpid() is not available. Don't kill the process. */ + continue; +#endif for(j = 0; j < 3; j++) if(opts->child[i].fd[j] >= 0)