/[packages]/cauldron/gpm/current/SOURCES/gpm-1.20.5-close-fds.patch
ViewVC logotype

Contents of /cauldron/gpm/current/SOURCES/gpm-1.20.5-close-fds.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 664 - (show annotations) (download)
Sat Jan 8 14:51:55 2011 UTC (13 years, 3 months ago) by blino
File size: 500 byte(s)
imported package gpm
1 --- gpm-1.20.5/src/daemon/startup.c.close-fds 2008-07-17 11:39:55.000000000 +0200
2 +++ gpm-1.20.5/src/daemon/startup.c 2008-07-17 11:40:20.000000000 +0200
3 @@ -135,6 +135,11 @@ void startup(int argc, char **argv)
4 check_uniqueness();
5 gpm_report(GPM_PR_INFO,GPM_MESS_STARTED);
6
7 + // close extra fds
8 + close(0);
9 + close(1);
10 + close(2);
11 +
12 //return mouse_table[1].fd; /* the second is handled in the main() */
13
14 /****************** OLD CODE from gpn.c END ***********************/

  ViewVC Help
Powered by ViewVC 1.1.30