From 7968cc2d4b00e11cba49f2f18d9fa31324bb9243 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 5 Feb 1996 20:32:20 +0000 Subject: [PATCH] (sigchld_handler): Use cleaner end-of-list test. --- src/process.c | 4 ++-- 1 file 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); -- 2.39.2