$NetBSD: patch-ah,v 1.3 1999/11/12 04:50:00 hubertf Exp $ --- ./kdm/daemon.c Wed Sep 30 23:19:53 1998 +++ /usr/pkgsrc/x11/kdebase/work.i386.unpatched/kdebase-1.1.2/kdm/daemon.c Fri Nov 12 05:10:31 1999 @@ -38,6 +38,10 @@ #include +#ifdef __SVR4 +#define SVR4 __SVR4 +#endif + /* #if defined(SVR4) || defined(USG) #include @@ -135,14 +139,12 @@ /* * Close standard file descriptors and get rid of controlling tty */ - -/* #if defined(SYSV) || defined(SVR4) setpgrp (); #else setpgrp (0, getpid()); #endif -*/ + setpgid( 0, getpid()); /* This should be POSIX /stefh */ close (0); close (1);