summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-11-24 21:52:20 +0000
committersabetts <sabetts>2002-11-24 21:52:20 +0000
commitbc15e751d3b8538720e89848db8bfb9f6f636c20 (patch)
treed192ee4116d97cdac29c2e5ee9095ab063930e23 /src/events.c
parent1445719b28b87a3be8f13f5a931adc6fc3da9da3 (diff)
downloadratpoison-bc15e751d3b8538720e89848db8bfb9f6f636c20.zip
* src/main.c: include sys/wait.h
(chld_handler): new function * src/events.c: include sys/wait.h (handle_signals): Print an error message in the case of a child signal. * src/data.h (struct rp_child_info): New struct. (child_info): New global. (chld_signalled): likewise * src/actions.c (spawn): Let the SIGCHLD handler handle process completion instead of doing an ugly dance.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c
index 4004c61..54270c3 100644
--- a/src/events.c
+++ b/src/events.c
@@ -33,6 +33,7 @@
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
+#include <sys/wait.h>
#include "ratpoison.h"
@@ -782,6 +783,12 @@ handle_signals ()
alarm_signalled = 0;
}
+ if (chld_signalled > 0)
+ {
+ marked_message_printf (0,0, " Command not found ");
+ chld_signalled = 0;
+ }
+
if (hup_signalled > 0)
{
clean_up ();