(sigchld_handler): Use cleaner end-of-list test.
authorKarl Heuer <kwzh@gnu.org>
Mon, 5 Feb 1996 20:32:20 +0000 (20:32 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 5 Feb 1996 20:32:20 +0000 (20:32 +0000)
src/process.c

index 7af4115..3927d4d 100644 (file)
@@ -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);