Moved SIGWINCH signal so it can be used...
authorEric Mullins <emwine@earthlink.net>
Sat, 17 Oct 2009 05:02:41 +0000 (23:02 -0600)
committerEric Mullins <emwine@earthlink.net>
Sat, 17 Oct 2009 05:02:41 +0000 (23:02 -0600)
I goofed putting this in StartChildProcess() originally.

xboard.c

index 911f005..9d0a314 100644 (file)
--- 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