diff options
Diffstat (limited to 'sysdeps/unix/bsd/setsid.c')
-rw-r--r-- | sysdeps/unix/bsd/setsid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/setsid.c b/sysdeps/unix/bsd/setsid.c index 59594101cf..e057694589 100644 --- a/sysdeps/unix/bsd/setsid.c +++ b/sysdeps/unix/bsd/setsid.c @@ -33,7 +33,7 @@ DEFUN_VOID(__setsid) int tty; int save = errno; - if (__getpgrp (pid) == pid) + if (__getpgid (pid) == pid) { /* Already the leader. */ errno = EPERM; |