*/
for (; children > 0; children--) {
WAIT_T waiter;
- PID_T pid;
+ PID_T child;
Debug(DPROC, ("[%ld] waiting for grandchild #%d to finish\n",
(long) getpid(), children))
- while ((pid = wait(&waiter)) < OK && errno == EINTR) ;
- if (pid < OK) {
+ while ((child = wait(&waiter)) < OK && errno == EINTR) ;
+ if (child < OK) {
Debug(DPROC,
("[%ld] no more grandchildren--mail written?\n",
(long) getpid()))
break;
}
Debug(DPROC, ("[%ld] grandchild #%ld finished, status=%04x",
- (long) getpid(), (long) pid, WEXITSTATUS(waiter)))
+ (long) getpid(), (long) child, WEXITSTATUS(waiter)))
if (WIFSIGNALED(waiter) && WCOREDUMP(waiter))
Debug(DPROC, (", dumped core"))
Debug(DPROC, ("\n"))
char **envp = NULL, **tenvp;
if (!(file = fdopen(crontab_fd, "r"))) {
- int save_errno = errno;
+ save_errno = errno;
log_it(uname, getpid (), "FAILED", "fdopen on crontab_fd in load_user",
save_errno);
close(crontab_fd);