diff options
author | Karl Heuer <kwzh@gnu.org> | 1996-02-05 20:32:20 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1996-02-05 20:32:20 +0000 |
commit | be7c00039caa05e5dbe126541730db7952a63c44 (patch) | |
tree | 09c1acb573ce500c127000581c2a7d04ed9dc6ba /src | |
parent | a47ac2c01612952fedb3a330e6a8a7965df29aae (diff) | |
download | emacs-be7c00039caa05e5dbe126541730db7952a63c44.tar.gz |
(sigchld_handler): Use cleaner end-of-list test.
Diffstat (limited to 'src')
-rw-r--r-- | src/process.c | 4 |
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); |