* Exit non-zero if one process crashed.

This commit is contained in:
Sam Hocevar
2007-01-14 20:28:09 +00:00
committed by sam
parent d43e3035be
commit 9587362904
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -220,6 +220,10 @@ Display a short help message and exit.
.TP
\fB\-V\fR, \fB\-\-version\fR
Output version information and exit.
.SH DIAGNOSTICS
.PP
Exit status is zero if no child process crashed. If one or several children
crashed, \fBzzuf\fR exits with status 1.
.SH EXAMPLES
.PP
Fuzz the input of the \fBcat\fR program using default settings:
+1 -1
View File
@@ -335,7 +335,7 @@ int main(int argc, char *argv[])
free(newargv);
free(child_list);
return EXIT_SUCCESS;
return crashes ? EXIT_FAILURE : EXIT_SUCCESS;
}
static void loop_stdin(void)