From 62d2ab3e687bfc7e0a02adedee30314b8ef1b08b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 8 Feb 2009 16:11:26 +0000 Subject: Continue process if suspended. --- tmux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tmux.c') 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 @@ -17,7 +17,6 @@ */ #include -#include #include #include @@ -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; -- cgit