aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-08 16:11:26 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-08 16:11:26 +0000
commit62d2ab3e687bfc7e0a02adedee30314b8ef1b08b (patch)
treefe5a18bde27c761f87eb287c6c5cd4b4e9c71440 /tmux.c
parent85fd2147af097184e596e5bbbb521bd1f3c0a0f1 (diff)
downloadrtmux-62d2ab3e687bfc7e0a02adedee30314b8ef1b08b.tar.gz
rtmux-62d2ab3e687bfc7e0a02adedee30314b8ef1b08b.tar.bz2
rtmux-62d2ab3e687bfc7e0a02adedee30314b8ef1b08b.zip
Continue process if suspended.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index b0d15595..14b317c5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.104 2009-01-30 00:24:49 nicm Exp $ */
+/* $Id: tmux.c,v 1.105 2009-02-08 16:11:26 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -17,7 +17,6 @@
*/
#include <sys/types.h>
-#include <sys/wait.h>
#include <errno.h>
#include <pwd.h>
@@ -46,6 +45,7 @@ const char *_malloc_options = "AJX";
volatile sig_atomic_t sigwinch;
volatile sig_atomic_t sigterm;
volatile sig_atomic_t sigcont;
+volatile sig_atomic_t sigchld;
char *cfg_file;
struct options global_options;
@@ -103,7 +103,7 @@ sighandler(int sig)
sigterm = 1;
break;
case SIGCHLD:
- waitpid(WAIT_ANY, NULL, WNOHANG);
+ sigchld = 1;
break;
case SIGCONT:
sigcont = 1;