|
Lines 58-63
Link Here
|
| 58 |
|
58 |
|
| 59 |
#ifdef WIN32 |
59 |
#ifdef WIN32 |
| 60 |
# include "win32/win32dep.h" |
60 |
# include "win32/win32dep.h" |
|
|
61 |
#else |
| 62 |
# include <sys/wait.h> |
| 61 |
#endif |
63 |
#endif |
| 62 |
|
64 |
|
| 63 |
#include "../pixmaps/EasyTAG_icon.xpm" |
65 |
#include "../pixmaps/EasyTAG_icon.xpm" |
|
Lines 139-145
Link Here
|
| 139 |
void Quit_Recursion_Function_Button_Pressed (void); |
141 |
void Quit_Recursion_Function_Button_Pressed (void); |
| 140 |
void Quit_Recursion_Window_Key_Press (GtkWidget *window, GdkEvent *event); |
142 |
void Quit_Recursion_Window_Key_Press (GtkWidget *window, GdkEvent *event); |
| 141 |
|
143 |
|
|
|
144 |
#ifndef WIN32 |
| 145 |
static void sigchld_handler(int signum) |
| 146 |
{ |
| 147 |
wait(NULL); |
| 148 |
} |
| 142 |
|
149 |
|
|
|
150 |
static void setup_sigchld() |
| 151 |
{ |
| 152 |
struct sigaction sa = {0}; |
| 153 |
sa.sa_handler = sigchld_handler; |
| 154 |
sigemptyset(&sa.sa_mask); |
| 155 |
sa.sa_flags = SA_RESTART; |
| 156 |
sigaction(SIGCHLD, &sa, NULL); |
| 157 |
} |
| 158 |
#endif |
| 143 |
|
159 |
|
| 144 |
/******** |
160 |
/******** |
| 145 |
* Main * |
161 |
* Main * |
|
Lines 169-175
Link Here
|
| 169 |
signal(SIGFPE,Handle_Crash); |
185 |
signal(SIGFPE,Handle_Crash); |
| 170 |
signal(SIGSEGV,Handle_Crash); |
186 |
signal(SIGSEGV,Handle_Crash); |
| 171 |
// Must handle this signal to avoid zombie of applications executed (ex: xmms) |
187 |
// Must handle this signal to avoid zombie of applications executed (ex: xmms) |
| 172 |
signal(SIGCHLD,SIG_IGN); // Fix me! : can't run nautilus 1.0.6 with "Browse Directory With" |
188 |
setup_sigchld(); |
| 173 |
#endif |
189 |
#endif |
| 174 |
|
190 |
|
| 175 |
#ifdef ENABLE_NLS |
191 |
#ifdef ENABLE_NLS |