[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/test not.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall 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;
 		}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]