version 1.45, 2002/03/19 06:32:56 |
version 1.46, 2002/03/30 18:51:15 |
|
|
strerror(errno)); |
strerror(errno)); |
_exit(1); |
_exit(1); |
} |
} |
if (waitpid(pid, &status, 0) == -1) |
while (waitpid(pid, &status, 0) == -1) |
fatal("Couldn't wait for child: %s", strerror(errno)); |
if (errno != EINTR) |
|
fatal("Couldn't wait for child: %s", strerror(errno)); |
if (!WIFEXITED(status)) |
if (!WIFEXITED(status)) |
error("Shell exited abormally"); |
error("Shell exited abormally"); |
else if (WEXITSTATUS(status)) |
else if (WEXITSTATUS(status)) |