[lvm-devel] LVM2/test not.c
mornfall at sourceware.org
mornfall at sourceware.org
Tue Feb 17 19:37:28 UTC 2009
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2009-02-17 19:37:28
Modified files:
test : not.c
Log message:
In testsuite's not.c, print a notice when program dies of a fatal signal.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/not.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/not.c 2009/01/12 18:45:44 1.1
+++ LVM2/test/not.c 2009/02/17 19:37:28 1.2
@@ -25,6 +25,10 @@
} 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;
}
More information about the lvm-devel
mailing list