Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit37afc07

Browse files
committed
Avoid defining SIGTTIN/SIGTTOU on Windows.
Setting them to SIG_IGN seems unlikely to have any beneficial effecton 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'tpresently feel a need to back-patch.Discussion:https://postgr.es/m/5627.1542477392@sss.pgh.pa.us
1 parent125f551 commit37afc07

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,12 @@ PostmasterMain(int argc, char *argv[])
654654
* a standalone backend, their default handling is reasonable. Hence, all
655655
* child processes should just allow the inherited settings to stand.
656656
*/
657+
#ifdefSIGTTIN
657658
pqsignal(SIGTTIN,SIG_IGN);/* ignored */
659+
#endif
660+
#ifdefSIGTTOU
658661
pqsignal(SIGTTOU,SIG_IGN);/* ignored */
662+
#endif
659663

660664
/* ignore SIGXFSZ, so that ulimit violations work like disk full */
661665
#ifdefSIGXFSZ

‎src/include/port/win32_port.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@
171171
#defineSIGTSTP18
172172
#defineSIGCONT19
173173
#defineSIGCHLD20
174-
#defineSIGTTIN21
175-
#defineSIGTTOU22/* Same as SIGABRT -- no problem, I hope */
176174
#defineSIGWINCH28
177175
#defineSIGUSR130
178176
#defineSIGUSR231

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp