- (dtucker) [openbsd-compat/bsd-misc.c] Handle the case where setpgrp() takes
an argument. Pointed out by djm.
This commit is contained in:
parent
f32db83f41
commit
2991d288db
|
@ -8,6 +8,8 @@
|
|||
platforms that don't have it.
|
||||
- (dtucker) [openbsd-compat/openbsd-compat.h] Add prototype for strtoul,
|
||||
group strto* function prototypes together.
|
||||
- (dtucker) [openbsd-compat/bsd-misc.c] Handle the case where setpgrp() takes
|
||||
an argument. Pointed out by djm.
|
||||
- (djm) OpenBSD CVS Sync
|
||||
- djm@cvs.openbsd.org 2013/02/14 21:35:59
|
||||
[auth2-pubkey.c]
|
||||
|
|
|
@ -253,10 +253,13 @@ isblank(int c)
|
|||
pid_t
|
||||
getpgid(pid_t pid)
|
||||
{
|
||||
#ifdef HAVE_GETPGRP
|
||||
#if defined(HAVE_GETPGRP) && !defined(GETPGRP_VOID)
|
||||
return getpgrp(pid);
|
||||
#elif defined(HAVE_GETPGRP)
|
||||
if (pid == 0)
|
||||
return getpgrp();
|
||||
#endif
|
||||
|
||||
errno = ESRCH;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue