version 1.160, 2009/03/23 08:31:19 |
version 1.161, 2009/03/23 19:38:04 |
|
|
pid_t pid; |
pid_t pid; |
char pidstrbuf[1 + 3 * sizeof pid]; |
char pidstrbuf[1 + 3 * sizeof pid]; |
struct timeval *tvp = NULL; |
struct timeval *tvp = NULL; |
|
size_t len; |
|
|
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ |
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ |
sanitise_stdfd(); |
sanitise_stdfd(); |
|
|
|
|
if (ac == 0 && !c_flag && !s_flag) { |
if (ac == 0 && !c_flag && !s_flag) { |
shell = getenv("SHELL"); |
shell = getenv("SHELL"); |
if (shell != NULL && |
if (shell != NULL && (len = strlen(shell)) > 2 && |
strncmp(shell + MAX(strlen(shell) - 3, 0), "csh", 3) == 0) |
strncmp(shell + len - 3, "csh", 3) == 0) |
c_flag = 1; |
c_flag = 1; |
} |
} |
if (k_flag) { |
if (k_flag) { |