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

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