From: Eric Mullins Date: Sat, 17 Oct 2009 05:02:41 +0000 (-0600) Subject: Moved SIGWINCH signal so it can be used... X-Git-Tag: v4.4.1.20091019~8 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e579088465d14ac31db59ed08265505316630e96;p=xboard.git Moved SIGWINCH signal so it can be used... I goofed putting this in StartChildProcess() originally. --- 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