From e579088465d14ac31db59ed08265505316630e96 Mon Sep 17 00:00:00 2001 From: Eric Mullins Date: Fri, 16 Oct 2009 23:02:41 -0600 Subject: [PATCH] Moved SIGWINCH signal so it can be used... I goofed putting this in StartChildProcess() originally. --- xboard.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/xboard.c b/xboard.c index 911f005..9d0a314 100644 --- a/xboard.c +++ b/xboard.c @@ -3193,6 +3193,9 @@ XBoard square size (hint): %d\n\ if (appData.icsInputBox) ICSInputBoxPopUp(); } + #ifdef SIGWINCH + signal(SIGWINCH, TermSizeSigHandler); + #endif signal(SIGINT, IntSigHandler); signal(SIGTERM, IntSigHandler); if (*appData.cmailGameName != NULLCHAR) { @@ -8195,10 +8198,6 @@ int StartChildProcess(cmdLine, dir, pr) SetUpChildIO(to_prog, from_prog); - #ifdef SIGWINCH - signal(SIGWINCH, TermSizeSigHandler); - #endif - if ((pid = fork()) == 0) { /* Child process */ // [HGM] PSWBTM: made order resistant against case where fd of created pipe was 0 or 1 -- 1.7.0.4