1 |
drac 08/03/12 18:14:19 |
2 |
|
3 |
Added: thunar-0.9.0-fix-defuncts.patch |
4 |
Log: |
5 |
Fix problem with Thunar leaving defuncts by including a fix from upstream bug 2983, thanks to VQuickSilver and tcunha. |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 xfce-base/thunar/files/thunar-0.9.0-fix-defuncts.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/xfce-base/thunar/files/thunar-0.9.0-fix-defuncts.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/xfce-base/thunar/files/thunar-0.9.0-fix-defuncts.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: thunar-0.9.0-fix-defuncts.patch |
15 |
=================================================================== |
16 |
Index: thunar-vfs/thunar-vfs-exec.c |
17 |
=================================================================== |
18 |
--- thunar-vfs/thunar-vfs-exec.c (revision 26428) |
19 |
+++ thunar-vfs/thunar-vfs-exec.c (working copy) |
20 |
@@ -324,8 +324,10 @@ |
21 |
if (startup_data->watch_id != 0) |
22 |
g_source_remove (startup_data->watch_id); |
23 |
|
24 |
- /* close the PID */ |
25 |
- g_spawn_close_pid (startup_data->pid); |
26 |
+ /* make sure we don't leave zombies (see bug #2983 for details) */ |
27 |
+ g_child_watch_add_full (G_PRIORITY_LOW, startup_data->pid, |
28 |
+ (GChildWatchFunc) g_spawn_close_pid, |
29 |
+ NULL, NULL); |
30 |
|
31 |
/* release the startup data */ |
32 |
_thunar_vfs_slice_free (TvsnStartupData, startup_data); |
33 |
@@ -513,7 +515,13 @@ |
34 |
startup_data->pid = pid; |
35 |
} |
36 |
} |
37 |
+ else if (G_LIKELY (succeed)) |
38 |
+ { |
39 |
+ /* make sure we don't leave zombies (see bug #2983 for details) */ |
40 |
+ g_child_watch_add_full (G_PRIORITY_LOW, pid, (GChildWatchFunc) g_spawn_close_pid, NULL, NULL); |
41 |
|
42 |
+ } |
43 |
+ |
44 |
/* release the sn display */ |
45 |
if (G_LIKELY (sn_display != NULL)) |
46 |
sn_display_unref (sn_display); |
47 |
|
48 |
|
49 |
|
50 |
-- |
51 |
gentoo-commits@l.g.o mailing list |