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

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