diff options
| author | Jan Djärv | 2004-01-26 23:39:30 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-01-26 23:39:30 +0000 |
| commit | c22aeff8e876b2820d134477a653f0679b71f488 (patch) | |
| tree | ac1d31392dfe6c17dc97c8ea8e216ff9003eed78 /src/process.c | |
| parent | ca4981285f6aa4883c44f0ac857aaca686241669 (diff) | |
| download | emacs-c22aeff8e876b2820d134477a653f0679b71f488.tar.gz emacs-c22aeff8e876b2820d134477a653f0679b71f488.zip | |
(sigchld_handler): Set synch_process_termsig
if terminated by a signal. synch_process_death setting removed.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/process.c b/src/process.c index fec6fdb2660..83f6df2d237 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -6212,18 +6212,7 @@ sigchld_handler (signo) | |||
| 6212 | if (WIFEXITED (w)) | 6212 | if (WIFEXITED (w)) |
| 6213 | synch_process_retcode = WRETCODE (w); | 6213 | synch_process_retcode = WRETCODE (w); |
| 6214 | else if (WIFSIGNALED (w)) | 6214 | else if (WIFSIGNALED (w)) |
| 6215 | { | 6215 | synch_process_termsig = WTERMSIG (w); |
| 6216 | int code = WTERMSIG (w); | ||
| 6217 | char *signame; | ||
| 6218 | |||
| 6219 | synchronize_system_messages_locale (); | ||
| 6220 | signame = strsignal (code); | ||
| 6221 | |||
| 6222 | if (signame == 0) | ||
| 6223 | signame = "unknown"; | ||
| 6224 | |||
| 6225 | synch_process_death = signame; | ||
| 6226 | } | ||
| 6227 | 6216 | ||
| 6228 | /* Tell wait_reading_process_input that it needs to wake up and | 6217 | /* Tell wait_reading_process_input that it needs to wake up and |
| 6229 | look around. */ | 6218 | look around. */ |