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:
parent
98bea5edbf
commit
62b248d2ed
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user