mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
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/5627.1542477392@sss.pgh.pa.us
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user