1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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 98bea5edbf
commit 62b248d2ed

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;
}