diff options
| author | Paul Eggert | 2013-08-18 22:46:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-08-18 22:46:17 -0700 |
| commit | 2249012558e589b9382e068326116dbd909bbb81 (patch) | |
| tree | d0dc21c14c5d642bef5da058c572655be954df07 /src/process.c | |
| parent | 51632863c2551d06415e541235d90c66fd3e8def (diff) | |
| download | emacs-2249012558e589b9382e068326116dbd909bbb81.tar.gz emacs-2249012558e589b9382e068326116dbd909bbb81.zip | |
* process.c (handle_child_signal): Fix crash; deleted pid.
This was introduced by my 2013-08-12 fix for Bug#15035.
Fixes: debbugs:15106
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 64cb401c06a..c4dd87a6b48 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -6153,7 +6153,10 @@ handle_child_signal (int sig) | |||
| 6153 | = (MOST_NEGATIVE_FIXNUM <= TYPE_MINIMUM (pid_t) | 6153 | = (MOST_NEGATIVE_FIXNUM <= TYPE_MINIMUM (pid_t) |
| 6154 | && TYPE_MAXIMUM (pid_t) <= MOST_POSITIVE_FIXNUM); | 6154 | && TYPE_MAXIMUM (pid_t) <= MOST_POSITIVE_FIXNUM); |
| 6155 | Lisp_Object head = XCAR (tail); | 6155 | Lisp_Object head = XCAR (tail); |
| 6156 | Lisp_Object xpid = XCAR (head); | 6156 | Lisp_Object xpid; |
| 6157 | if (! CONSP (head)) | ||
| 6158 | continue; | ||
| 6159 | xpid = XCAR (head); | ||
| 6157 | if (all_pids_are_fixnums ? INTEGERP (xpid) : NUMBERP (xpid)) | 6160 | if (all_pids_are_fixnums ? INTEGERP (xpid) : NUMBERP (xpid)) |
| 6158 | { | 6161 | { |
| 6159 | pid_t deleted_pid; | 6162 | pid_t deleted_pid; |