This was introduced by my 2013-08-12 fix for Bug#15035.
Fixes: debbugs:15106
+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)
= (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;