diff options
author | jsorg71 <jsorg71> | 2008-12-30 07:38:56 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-12-30 07:38:56 +0000 |
commit | c69bb282d4432e014a2fa7a4042c425ef89aedd5 (patch) | |
tree | 5e5eed5d04cf1e888d3c6fcb7393b1a4dfc4e857 /common | |
parent | 6f169002edd4e793deca6173172329aa35cd2128 (diff) | |
download | xrdp-proprietary-c69bb282d4432e014a2fa7a4042c425ef89aedd5.tar.gz xrdp-proprietary-c69bb282d4432e014a2fa7a4042c425ef89aedd5.zip |
added g_signal_* functions
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 55 | ||||
-rw-r--r-- | common/os_calls.h | 10 |
2 files changed, 65 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 84bba282..3d7cd2d0 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1733,6 +1733,61 @@ g_signal_child_stop(void (*func)(int)) /*****************************************************************************/ /* does not work in win32 */ +void APP_CC +g_signal_hang_up(void (*func)(int)) +{ +#if defined(_WIN32) +#else + signal(SIGHUP, func); +#endif +} + +/*****************************************************************************/ +/* does not work in win32 */ +void APP_CC +g_signal_user_interrupt(void (*func)(int)) +{ +#if defined(_WIN32) +#else + signal(SIGINT, func); +#endif +} + +/*****************************************************************************/ +/* does not work in win32 */ +void APP_CC +g_signal_kill(void (*func)(int)) +{ +#if defined(_WIN32) +#else + signal(SIGKILL, func); +#endif +} + +/*****************************************************************************/ +/* does not work in win32 */ +void APP_CC +g_signal_terminate(void (*func)(int)) +{ +#if defined(_WIN32) +#else + signal(SIGTERM, func); +#endif +} + +/*****************************************************************************/ +/* does not work in win32 */ +void APP_CC +g_signal_pipe(void (*func)(int)) +{ +#if defined(_WIN32) +#else + signal(SIGPIPE, func); +#endif +} + +/*****************************************************************************/ +/* does not work in win32 */ int APP_CC g_fork(void) { diff --git a/common/os_calls.h b/common/os_calls.h index 581d1a3c..3984bf7a 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -198,6 +198,16 @@ void APP_CC g_signal(int sig_num, void (*func)(int)); void APP_CC g_signal_child_stop(void (*func)(int)); +void APP_CC +g_signal_hang_up(void (*func)(int)); +void APP_CC +g_signal_user_interrupt(void (*func)(int)); +void APP_CC +g_signal_kill(void (*func)(int)); +void APP_CC +g_signal_terminate(void (*func)(int)); +void APP_CC +g_signal_pipe(void (*func)(int)); int APP_CC g_fork(void); int APP_CC |