search for: have_getpgid

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

Did you mean: have_getluid
2013 Feb 15
2
getpgrp
...-compat/bsd-misc.c,v retrieving revision 1.36 diff -u -p -r1.36 bsd-misc.c --- openbsd-compat/bsd-misc.c 8 Nov 2010 22:26:23 -0000 1.36 +++ openbsd-compat/bsd-misc.c 15 Feb 2013 00:26:37 -0000 @@ -246,4 +246,18 @@ int isblank(int c) { return (c == ' ' || c == '\t'); } + +#ifndef HAVE_GETPGID +pid_t +getpgid(pid_t pid) +{ +#ifdef HAVE_GETPGRP + if (pid == 0) + return getpgrp(); +#endif + errno = ESRCH; + return -1; +} +#endif + #endif Index: openbsd-compat/bsd-misc.h =================================================================== RCS file: /var/cvs/openssh/openbsd-compat/bsd-misc....