Blame SOURCES/gpm-1.20.5-close-fds.patch

dc81d6
diff -up gpm-1.20.5/src/daemon/startup.c.close-fds gpm-1.20.5/src/daemon/startup.c
dc81d6
--- gpm-1.20.5/src/daemon/startup.c.close-fds	2008-06-13 10:08:19.000000000 +0200
dc81d6
+++ gpm-1.20.5/src/daemon/startup.c	2008-12-02 10:11:12.000000000 +0100
dc81d6
@@ -135,6 +135,13 @@ void startup(int argc, char **argv)
dc81d6
    check_uniqueness();
dc81d6
    gpm_report(GPM_PR_INFO,GPM_MESS_STARTED);
dc81d6
 
dc81d6
+   // close extra fds
dc81d6
+   if (option.run_status == GPM_RUN_STARTUP ) {
dc81d6
+       close(0);
dc81d6
+       close(1);
dc81d6
+       close(2);
dc81d6
+   }
dc81d6
+
dc81d6
    //return mouse_table[1].fd; /* the second is handled in the main() */
dc81d6
 
dc81d6
    /****************** OLD CODE from gpn.c  END ***********************/