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

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