diff -urN linux/include/linux/prctl.h linux-2.3.14-work/include/linux/prctl.h
--- linux/include/linux/prctl.h	Mon Sep 22 22:55:59 1997
+++ linux-2.3.14-work/include/linux/prctl.h	Wed Aug 25 17:30:28 1999
@@ -1,9 +1,10 @@
 #ifndef _LINUX_PRCTL_H
 #define _LINUX_PRCTL_H
 
-/*  Values to pass as first argument to prctl()  */
+/* Values to pass as first argument to prctl() */
 
-#define PR_SET_PDEATHSIG  1  /*  Second arg is a signal  */
+#define PR_SET_PDEATHSIG  1  /* Second arg is a signal */
+#define PR_GET_PDEATHSIG  2  /* Second arg is a ptr to return the signal */
 
 
 #endif /* _LINUX_PRCTL_H */
diff -urN linux/kernel/sys.c linux-2.3.14-work/kernel/sys.c
--- linux/kernel/sys.c	Sat Jul  3 20:04:12 1999
+++ linux-2.3.14-work/kernel/sys.c	Wed Aug 25 17:29:16 1999
@@ -998,6 +998,9 @@
 			}
 			current->pdeath_signal = sig;
 			break;
+		case PR_GET_PDEATHSIG:
+			error = put_user(current->pdeath_signal, (int *)arg2);
+			break;
 		default:
 			error = -EINVAL;
 			break;
