- (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.
|
platforms that don't have it.
|
||||||
- (dtucker) [openbsd-compat/openbsd-compat.h] Add prototype for strtoul,
|
- (dtucker) [openbsd-compat/openbsd-compat.h] Add prototype for strtoul,
|
||||||
group strto* function prototypes together.
|
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) OpenBSD CVS Sync
|
||||||
- djm@cvs.openbsd.org 2013/02/14 21:35:59
|
- djm@cvs.openbsd.org 2013/02/14 21:35:59
|
||||||
[auth2-pubkey.c]
|
[auth2-pubkey.c]
|
||||||
|
|
|
@ -253,10 +253,13 @@ isblank(int c)
|
||||||
pid_t
|
pid_t
|
||||||
getpgid(pid_t pid)
|
getpgid(pid_t pid)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GETPGRP
|
#if defined(HAVE_GETPGRP) && !defined(GETPGRP_VOID)
|
||||||
|
return getpgrp(pid);
|
||||||
|
#elif defined(HAVE_GETPGRP)
|
||||||
if (pid == 0)
|
if (pid == 0)
|
||||||
return getpgrp();
|
return getpgrp();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
errno = ESRCH;
|
errno = ESRCH;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue