Fix setpgrp portability issue (use setpgid instead).
[doldaconnect.git] / daemon / main.c
index 0693a3d..4bded58 100644 (file)
@@ -304,7 +304,7 @@ pid_t forksess(uid_t user, struct authhandle *auth, void (*ccbfunc)(pid_t, int,
                close(i);
            }
        }
-       setpgrp();
+       setpgid(0, 0);
        signal(SIGHUP, SIG_IGN);
        errno = 0;
 #ifdef HAVE_KEYUTILS