Magellan Linux

Annotation of /trunk/xscreensaver/patches/xscreensaver-5.08-phosphor-segv.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 787 - (hide annotations) (download)
Fri May 8 07:51:46 2009 UTC (15 years ago) by niro
File size: 568 byte(s)
several fixes#

1 niro 787 --- xscreensaver-5.08/hacks/phosphor.c.debug 2008-07-31 19:01:00.000000000 +0900
2     +++ xscreensaver-5.08/hacks/phosphor.c 2009-01-22 22:52:11.000000000 +0900
3     @@ -1353,6 +1353,7 @@
4     if (state->pid)
5     {
6     waitpid(state->pid, NULL, 0);
7     + state->pid = 0;
8     fclose (state->pipe);
9     }
10     else
11     @@ -1436,7 +1437,7 @@
12     resize_grid (state);
13    
14     # if defined(HAVE_FORKPTY) && defined(TIOCSWINSZ)
15     - if (state->pid)
16     + if (state->pid && state->pipe)
17     {
18     /* Tell the sub-process that the screen size has changed. */
19     struct winsize ws;