diff --git a/src/signal_handler.c b/src/signal_handler.c
index 14eb1c608a53493b9cd0353d9ff61c5ca2e665fa..dade0fff8aecca624736a6fa95975777afc41a73 100644
--- a/src/signal_handler.c
+++ b/src/signal_handler.c
@@ -23,7 +23,7 @@
 #include "builtin_functions.h"
 #include <signal.h>
 
-RCSID("$Id: signal_handler.c,v 1.95 1999/01/07 23:32:31 hubbe Exp $");
+RCSID("$Id: signal_handler.c,v 1.96 1999/01/08 00:18:27 hubbe Exp $");
 
 #ifdef HAVE_PASSWD_H
 # include <passwd.h>
@@ -1473,6 +1473,9 @@ void f_create_process(INT32 args)
       while (((e = write(control_pipe[0], buf, 1)) < 0) && (errno == EINTR))
 	;
 
+      if(e!=1)
+	error("Child process died prematurely. (e=%d errno=%d)\n",e,errno);
+
       /* Wait for exec or error */
       while (((e = read(control_pipe[0], buf, 3)) < 0) && (errno == EINTR))
 	;