- (dtucker) [openbsd-compat/bsd-misc.c] Handle the case where setpgrp() takes

an argument.  Pointed out by djm.
This commit is contained in:
Darren Tucker 2013-02-15 14:55:38 +11:00
parent f32db83f41
commit 2991d288db
2 changed files with 6 additions and 1 deletions

View File

@ -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]

View File

@ -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;
}