diff options
author | sabetts <sabetts> | 2002-11-24 21:52:20 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-11-24 21:52:20 +0000 |
commit | bc15e751d3b8538720e89848db8bfb9f6f636c20 (patch) | |
tree | d192ee4116d97cdac29c2e5ee9095ab063930e23 /src/data.h | |
parent | 1445719b28b87a3be8f13f5a931adc6fc3da9da3 (diff) | |
download | ratpoison-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.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; |