search for: need_setsid

Displaying 1 result from an estimated 1 matches for "need_setsid".

2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...*stat_loc; + int options; +{ + if (pid <= 0) + { + if (pid != -1) + { + errno = EINVAL; + return -1; + } + pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */ + } + return wait4(pid, (union wait *)stat_loc, options, NULL); +} +#endif /* NEED_WAITPID */ + +#ifdef NEED_SETSID +pid_t setsid(void) +{ + return setpgrp(0, getpid()); +} +#endif /* !NEED_SETSID */ diff -ruN openssh-1.2.2/bsd-misc.h ossh-1.2.2n/bsd-misc.h --- openssh-1.2.2/bsd-misc.h Thu Jan 6 03:28:41 2000 +++ ossh-1.2.2n/bsd-misc.h Thu Jan 27 00:42:24 2000 @@ -65,4 +65,16 @@ int seteuid(uid_t euid); #endi...