summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-02-05 20:32:20 +0000
committerKarl Heuer <kwzh@gnu.org>1996-02-05 20:32:20 +0000
commitbe7c00039caa05e5dbe126541730db7952a63c44 (patch)
tree09c1acb573ce500c127000581c2a7d04ed9dc6ba
parenta47ac2c01612952fedb3a330e6a8a7965df29aae (diff)
downloademacs-be7c00039caa05e5dbe126541730db7952a63c44.tar.gz
(sigchld_handler): Use cleaner end-of-list test.
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
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);