From: Karl Heuer Date: Mon, 5 Feb 1996 20:32:20 +0000 (+0000) Subject: (sigchld_handler): Use cleaner end-of-list test. X-Git-Tag: emacs-19.34~1364 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7968cc2d4b00e11cba49f2f18d9fa31324bb9243;p=emacs.git (sigchld_handler): Use cleaner end-of-list test. --- diff --git a/src/process.c b/src/process.c index 7af4115de6f..3927d4dbc6d 100644 --- a/src/process.c +++ b/src/process.c @@ -3321,7 +3321,7 @@ sigchld_handler (signo) /* Find the process that signaled us, and record its status. */ p = 0; - for (tail = Vprocess_alist; XSYMBOL (tail) != XSYMBOL (Qnil); tail = XCONS (tail)->cdr) + for (tail = Vprocess_alist; CONSP (tail); tail = XCONS (tail)->cdr) { proc = XCONS (XCONS (tail)->car)->cdr; p = XPROCESS (proc); @@ -3333,7 +3333,7 @@ sigchld_handler (signo) /* Look for an asynchronous process whose pid hasn't been filled in yet. */ if (p == 0) - for (tail = Vprocess_alist; XSYMBOL (tail) != XSYMBOL (Qnil); tail = XCONS (tail)->cdr) + for (tail = Vprocess_alist; CONSP (tail); tail = XCONS (tail)->cdr) { proc = XCONS (XCONS (tail)->car)->cdr; p = XPROCESS (proc);