version 1.36.2.2, 2002/03/09 00:20:45 |
version 1.36.2.3, 2002/06/02 22:56:11 |
|
|
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)) |
|
|
file2); |
file2); |
|
|
parse_dispatch_command(conn, cmd, &pwd); |
parse_dispatch_command(conn, cmd, &pwd); |
|
xfree(dir); |
return; |
return; |
} |
} |
|
xfree(dir); |
} |
} |
setvbuf(stdout, NULL, _IOLBF, 0); |
setvbuf(stdout, NULL, _IOLBF, 0); |
setvbuf(infile, NULL, _IOLBF, 0); |
setvbuf(infile, NULL, _IOLBF, 0); |