signal: default behaviour for SIGWINCH is ignore
authorAlan Cox <alan@linux.intel.com>
Mon, 29 Aug 2016 15:49:59 +0000 (16:49 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 29 Aug 2016 15:49:59 +0000 (16:49 +0100)
It's not defined by POSIX but this appears to be the convention

Alan

Kernel/process.c

index 8c30c2b..77c8040 100644 (file)
@@ -485,7 +485,7 @@ uint8_t chksigs(void)
                        /* SIGCONT is subtle - we woke the process to handle
                           the signal so ignoring here works fine */
                        if (j == SIGCHLD || j == SIGURG || j == SIGSTOP ||
-                            j == SIGTTIN || j == SIGTTOU ||
+                            j == SIGTTIN || j == SIGTTOU || j == SIGWINCH ||
                            j == SIGIO || j == SIGCONT || udata.u_ptab->p_pid == 1) {
                                udata.u_ptab->p_pending &= ~m;  // unset the bit
                                continue;