summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-12-30 07:38:56 +0000
committerjsorg71 <jsorg71>2008-12-30 07:38:56 +0000
commitc69bb282d4432e014a2fa7a4042c425ef89aedd5 (patch)
tree5e5eed5d04cf1e888d3c6fcb7393b1a4dfc4e857 /common
parent6f169002edd4e793deca6173172329aa35cd2128 (diff)
downloadxrdp-proprietary-c69bb282d4432e014a2fa7a4042c425ef89aedd5.tar.gz
xrdp-proprietary-c69bb282d4432e014a2fa7a4042c425ef89aedd5.zip
added g_signal_* functions
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c55
-rw-r--r--common/os_calls.h10
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