summaryrefslogtreecommitdiff
path: root/src/data.h
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/data.h
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/data.h')
-rw-r--r--src/data.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index eae7df7..d81918d 100644
--- a/src/data.h
+++ b/src/data.h
@@ -165,6 +165,17 @@ struct rp_defaults
int warp;
};
+/* Information about a child process. */
+struct rp_child_info
+{
+ int pid;
+ int status;
+};
+
+/* When a child process exits this structure holds the information
+ about it to be used to report back to the user. */
+extern struct rp_child_info child_info;
+
extern struct rp_defaults defaults;
/* The prefix key also known as the command character under screen. */
@@ -250,6 +261,7 @@ extern struct modifier_info rp_modifier_info;
extern int alarm_signalled;
extern int kill_signalled;
extern int hup_signalled;
+extern int chld_signalled;
/* rudeness levels */
extern int rp_honour_transient_raise;