diff options
| author | Karl Heuer | 1996-02-05 20:32:20 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-02-05 20:32:20 +0000 |
| commit | 7968cc2d4b00e11cba49f2f18d9fa31324bb9243 (patch) | |
| tree | d9847e4e9e26c24e7868759c67bec6dbdb0e45d8 /src | |
| parent | 3272c162007de232a09779fe93be3e9fe76a2a27 (diff) | |
| download | emacs-7968cc2d4b00e11cba49f2f18d9fa31324bb9243.tar.gz emacs-7968cc2d4b00e11cba49f2f18d9fa31324bb9243.zip | |
(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) | |||
| 3321 | /* Find the process that signaled us, and record its status. */ | 3321 | /* Find the process that signaled us, and record its status. */ |
| 3322 | 3322 | ||
| 3323 | p = 0; | 3323 | p = 0; |
| 3324 | for (tail = Vprocess_alist; XSYMBOL (tail) != XSYMBOL (Qnil); tail = XCONS (tail)->cdr) | 3324 | for (tail = Vprocess_alist; CONSP (tail); tail = XCONS (tail)->cdr) |
| 3325 | { | 3325 | { |
| 3326 | proc = XCONS (XCONS (tail)->car)->cdr; | 3326 | proc = XCONS (XCONS (tail)->car)->cdr; |
| 3327 | p = XPROCESS (proc); | 3327 | p = XPROCESS (proc); |
| @@ -3333,7 +3333,7 @@ sigchld_handler (signo) | |||
| 3333 | /* Look for an asynchronous process whose pid hasn't been filled | 3333 | /* Look for an asynchronous process whose pid hasn't been filled |
| 3334 | in yet. */ | 3334 | in yet. */ |
| 3335 | if (p == 0) | 3335 | if (p == 0) |
| 3336 | for (tail = Vprocess_alist; XSYMBOL (tail) != XSYMBOL (Qnil); tail = XCONS (tail)->cdr) | 3336 | for (tail = Vprocess_alist; CONSP (tail); tail = XCONS (tail)->cdr) |
| 3337 | { | 3337 | { |
| 3338 | proc = XCONS (XCONS (tail)->car)->cdr; | 3338 | proc = XCONS (XCONS (tail)->car)->cdr; |
| 3339 | p = XPROCESS (proc); | 3339 | p = XPROCESS (proc); |