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

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