Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > bbd3e8e2100890904741ebd69eab646a > files > 4

gpm-1.20.5-1mdv2009.0.src.rpm

--- gpm-1.20.3/src/daemon/startup.c.close-fds	2008-05-28 13:18:59.000000000 +0200
+++ gpm-1.20.3/src/daemon/startup.c	2008-05-28 13:20:13.000000000 +0200
@@ -143,6 +143,10 @@ void startup(int argc, char **argv)
     * remove and ignore it ?? FIXME */
    if (chdir("/") < 0) gpm_report(GPM_PR_OOPS,GPM_MESS_CHDIR_FAILED);
 
+   // close extra fds
+   close(0);
+   close(1);
+   close(2);
    
    //return mouse_table[1].fd; /* the second is handled in the main() */