[vte] Add more conditionals



commit f116be136c0111d3ff1ea7a8c89233bd00fd5140
Author: Christian Persch <chpe gnome org>
Date:   Thu Mar 25 13:59:32 2010 +0100

    Add more conditionals
    
    Only use these signals if they're defined. Taken from the patch in
    bug #369310.

 src/pty.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/pty.c b/src/pty.c
index 49e6461..1630b27 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -86,22 +86,42 @@ static int _vte_pty_helper_tunnel = -1;
 static void
 _vte_pty_reset_signal_handlers(void)
 {
+#ifdef SIGHUP
 	signal(SIGHUP,  SIG_DFL);
+#endif
 	signal(SIGINT,  SIG_DFL);
 	signal(SIGILL,  SIG_DFL);
 	signal(SIGABRT, SIG_DFL);
 	signal(SIGFPE,  SIG_DFL);
+#ifdef SIGKILL
 	signal(SIGKILL, SIG_DFL);
+#endif
 	signal(SIGSEGV, SIG_DFL);
+#ifdef SIGPIPE
 	signal(SIGPIPE, SIG_DFL);
+#endif
+#ifdef SIGALRM
 	signal(SIGALRM, SIG_DFL);
+#endif
 	signal(SIGTERM, SIG_DFL);
+#ifdef SIGCHLD
 	signal(SIGCHLD, SIG_DFL);
+#endif
+#ifdef SIGCONT
 	signal(SIGCONT, SIG_DFL);
+#endif
+#ifdef SIGSTOP
 	signal(SIGSTOP, SIG_DFL);
+#endif
+#ifdef SIGTSTP
 	signal(SIGTSTP, SIG_DFL);
+#endif
+#ifdef SIGTTIN
 	signal(SIGTTIN, SIG_DFL);
+#endif
+#ifdef SIGTTOU
 	signal(SIGTTOU, SIG_DFL);
+#endif
 #ifdef SIGBUS
 	signal(SIGBUS,  SIG_DFL);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]