diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 10 | ||||
-rw-r--r-- | common/os_calls.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index b04d71fe..0a4efba3 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -770,6 +770,16 @@ g_signal(int sig_num, void (*func)(int)) } /*****************************************************************************/ +void +g_signal_child_stop(void (*func)(int)) +{ +#if defined(_WIN32) +#else + signal(SIGCHLD, func); +#endif +} + +/*****************************************************************************/ int g_fork(void) { diff --git a/common/os_calls.h b/common/os_calls.h index e05345f8..af300817 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -134,6 +134,8 @@ g_execlp11(char* a1, char* a2, char* a3, char* a4, char* a5, char* a6, char* a7, char* a8, char* a9, char* a10, char* a11); void g_signal(int sig_num, void (*func)(int)); +void +g_signal_child_stop(void (*func)(int)); int g_fork(void); int |