From: fredrik Date: Sat, 14 Apr 2007 19:15:42 +0000 (+0000) Subject: Fix setpgrp portability issue (use setpgid instead). X-Git-Tag: 0.3~3 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=1001e9965d257861e5ee75b62c59cc42659b0671 Fix setpgrp portability issue (use setpgid instead). git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@934 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/daemon/main.c b/daemon/main.c index 0693a3d..4bded58 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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