From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-misc/xscreensaver/files: xscreensaver-5.08-phosphor-segv.patch |
Date: | Thu, 30 Apr 2009 14:12:50 |
Message-Id: | E1LzX0G-0005Cq-3b@stork.gentoo.org |
1 | ssuominen 09/04/30 14:12:44 |
2 | |
3 | Added: xscreensaver-5.08-phosphor-segv.patch |
4 | Log: |
5 | Fix segv with phosphor screensaver wrt #256446, thanks to Nick Soveiko. |
6 | (Portage version: 2.1.6.11/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 x11-misc/xscreensaver/files/xscreensaver-5.08-phosphor-segv.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xscreensaver/files/xscreensaver-5.08-phosphor-segv.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xscreensaver/files/xscreensaver-5.08-phosphor-segv.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: xscreensaver-5.08-phosphor-segv.patch |
15 | =================================================================== |
16 | --- xscreensaver-5.08/hacks/phosphor.c.debug 2008-07-31 19:01:00.000000000 +0900 |
17 | +++ xscreensaver-5.08/hacks/phosphor.c 2009-01-22 22:52:11.000000000 +0900 |
18 | @@ -1353,6 +1353,7 @@ |
19 | if (state->pid) |
20 | { |
21 | waitpid(state->pid, NULL, 0); |
22 | + state->pid = 0; |
23 | fclose (state->pipe); |
24 | } |
25 | else |
26 | @@ -1436,7 +1437,7 @@ |
27 | resize_grid (state); |
28 | |
29 | # if defined(HAVE_FORKPTY) && defined(TIOCSWINSZ) |
30 | - if (state->pid) |
31 | + if (state->pid && state->pipe) |
32 | { |
33 | /* Tell the sub-process that the screen size has changed. */ |
34 | struct winsize ws; |