summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane2018-11-17 21:31:07 +0000
committerTom Lane2018-11-17 21:31:16 +0000
commit37afc079abe1986b4af94aa8ec28cefd663aaae6 (patch)
treec9105585dcb7cf52a12eb1ebb3555819ad4ccf0c /src
parent125f551c8be101ec36ec5fed5befc8fbf7370e0a (diff)
Avoid defining SIGTTIN/SIGTTOU on Windows.
Setting them to SIG_IGN seems unlikely to have any beneficial effect on that platform, and given the signal numbering collision with SIGABRT, it could easily have bad effects. Given the lack of field complaints that can be traced to this, I don't presently feel a need to back-patch. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/postmaster.c4
-rw-r--r--src/include/port/win32_port.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 68bb35ab791..a33a1311829 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -654,8 +654,12 @@ PostmasterMain(int argc, char *argv[])
* a standalone backend, their default handling is reasonable. Hence, all
* child processes should just allow the inherited settings to stand.
*/
+#ifdef SIGTTIN
pqsignal(SIGTTIN, SIG_IGN); /* ignored */
+#endif
+#ifdef SIGTTOU
pqsignal(SIGTTOU, SIG_IGN); /* ignored */
+#endif
/* ignore SIGXFSZ, so that ulimit violations work like disk full */
#ifdef SIGXFSZ
diff --git a/src/include/port/win32_port.h b/src/include/port/win32_port.h
index 360dbdf3a75..f9d351f20b7 100644
--- a/src/include/port/win32_port.h
+++ b/src/include/port/win32_port.h
@@ -171,8 +171,6 @@
#define SIGTSTP 18
#define SIGCONT 19
#define SIGCHLD 20
-#define SIGTTIN 21
-#define SIGTTOU 22 /* Same as SIGABRT -- no problem, I hope */
#define SIGWINCH 28
#define SIGUSR1 30
#define SIGUSR2 31