aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-09-20 09:43:33 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-09-20 09:43:33 +0000
commit2cd99f0ebbd234c76754bbeee554834cb8cb62ba (patch)
tree1602b8f87c290276216da6bcef6e3d354f30c2d7 /tmux.c
parent9c0b51cd5df342aa96048948d42323df6e6d3dc0 (diff)
downloadrtmux-2cd99f0ebbd234c76754bbeee554834cb8cb62ba.tar.gz
rtmux-2cd99f0ebbd234c76754bbeee554834cb8cb62ba.tar.bz2
rtmux-2cd99f0ebbd234c76754bbeee554834cb8cb62ba.zip
Reset ignored signals after forkpty.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 00b68246..f6515bab 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.6 2007-08-28 09:36:33 nicm Exp $ */
+/* $Id: tmux.c,v 1.7 2007-09-20 09:43:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -155,6 +155,7 @@ main(int argc, char **argv)
xfree(path);
/* Set up signal handlers. */
+ memset(&act, 0, sizeof act);
sigemptyset(&act.sa_mask);
act.sa_flags = SA_RESTART;