* process.c (handle_child_signal): Fix crash; deleted pid.

This was introduced by my 2013-08-12 fix for Bug#15035.

Fixes: debbugs:15106
This commit is contained in:
Paul Eggert 2013-08-18 22:46:17 -07:00
parent 51632863c2
commit 2249012558
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-08-19 Paul Eggert <eggert@cs.ucla.edu>
* process.c (handle_child_signal): Fix crash; deleted pid (Bug#15106).
This was introduced by my 2013-08-12 fix for Bug#15035.
2013-08-19 Dmitry Antipov <dmantipov@yandex.ru>
* image.c (imagemagick_create_cache, imagemagick_get_animation_cache)

View file

@ -6153,7 +6153,10 @@ handle_child_signal (int sig)
= (MOST_NEGATIVE_FIXNUM <= TYPE_MINIMUM (pid_t)
&& TYPE_MAXIMUM (pid_t) <= MOST_POSITIVE_FIXNUM);
Lisp_Object head = XCAR (tail);
Lisp_Object xpid = XCAR (head);
Lisp_Object xpid;
if (! CONSP (head))
continue;
xpid = XCAR (head);
if (all_pids_are_fixnums ? INTEGERP (xpid) : NUMBERP (xpid))
{
pid_t deleted_pid;