Skip to content

Commit a06e8f8

Browse files
committed
Tighten check for --forkchild argument when spawning child process
Commit aafc05d removed all the other --fork* arguments. Altough this is inconsequential, backpatch to v17 since this is new. Author: Nathan Bossart Discussion: https://www.postgresql.org/message-id/ZnCCEN0l3qWv-XpW@nathan
1 parent ae395f0 commit a06e8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ main(int argc, char *argv[])
185185
else if (argc > 1 && strcmp(argv[1], "--boot") == 0)
186186
BootstrapModeMain(argc, argv, false);
187187
#ifdef EXEC_BACKEND
188-
else if (argc > 1 && strncmp(argv[1], "--fork", 6) == 0)
188+
else if (argc > 1 && strncmp(argv[1], "--forkchild", 11) == 0)
189189
SubPostmasterMain(argc, argv);
190190
#endif
191191
else if (argc > 1 && strcmp(argv[1], "--describe-config") == 0)

0 commit comments

Comments
 (0)