Return to ssh-agent.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.66, 2001/07/17 20:48:42 | version 1.67, 2001/07/18 21:40:40 | ||
---|---|---|---|
|
|
||
perror(av[0]); | perror(av[0]); | ||
exit(1); | exit(1); | ||
} | } | ||
if (setsid() == -1) { | |||
perror("setsid"); | |||
cleanup_exit(1); | |||
} | |||
(void)chdir("/"); | |||
close(0); | close(0); | ||
close(1); | close(1); | ||
close(2); | close(2); | ||
|
|
||
rlim.rlim_cur = rlim.rlim_max = 0; | rlim.rlim_cur = rlim.rlim_max = 0; | ||
if (setrlimit(RLIMIT_CORE, &rlim) < 0) { | if (setrlimit(RLIMIT_CORE, &rlim) < 0) { | ||
perror("setrlimit rlimit_core failed"); | perror("setrlimit rlimit_core failed"); | ||
cleanup_exit(1); | |||
} | |||
if (setsid() == -1) { | |||
perror("setsid"); | |||
cleanup_exit(1); | cleanup_exit(1); | ||
} | } | ||