]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm-pipewrite.patch
- perl -pi -e "s/^\%\{_datadir\}\/pixmaps/\%\{_pixmapsdir\}/"
[packages/gdm2.20.git] / gdm-pipewrite.patch
1 --- gdm-2.0beta4/daemon/slave.c~        Wed Sep 29 18:56:35 1999
2 +++ gdm-2.0beta4/daemon/slave.c Thu Apr 27 18:14:16 2000
3 @@ -423,6 +423,15 @@
4         /* Restore sigmask inherited from init */
5         sigprocmask (SIG_SETMASK, &sysmask, NULL);
6         
7 +       for(i = 0; i < sysconf(_SC_OPEN_MAX); i++)
8 +         close(i);
9 +
10 +       /* No error checking here - if it's messed the best response
11 +           is to ignore & try to continue */
12 +       open("/dev/null", O_RDONLY); /* open stdin - fd 0 */
13 +       open("/dev/null", O_RDWR); /* open stdout - fd 1 */
14 +       open("/dev/null", O_RDWR); /* open stderr - fd 2 */
15 +
16         execl (sesspath, NULL);
17         
18         gdm_error (_("gdm_slave_session_start: Could not start session `%s'"), sesspath);
This page took 0.028263 seconds and 3 git commands to generate.