1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

In testsuite's not.c, print a notice when program dies of a fatal signal.

This commit is contained in:
Petr Rockai 2009-02-17 19:37:28 +00:00
parent 822aa2a352
commit 12811483be

View File

@ -25,6 +25,10 @@ int main(int args, char **argv) {
} else { /* parent */
waitpid(pid, &status, 0);
if (!WIFEXITED(status)) {
if (WIFSIGNALED(status))
fprintf(stderr,
"Process %d died of signal %d.\n",
pid, WTERMSIG(status));
/* did not exit correctly */
return FAILURE;
}