Fix setpgrp portability issue (use setpgid instead).
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 14 Apr 2007 19:15:42 +0000 (19:15 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 14 Apr 2007 19:15:42 +0000 (19:15 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@934 959494ce-11ee-0310-bf91-de5d638817bd

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