$NetBSD: patch-ah,v 1.4 2001/09/10 08:23:19 skrll Exp $ --- kdm/daemon.c.orig Wed Sep 30 22:19:53 1998 +++ kdm/daemon.c @@ -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);