diff options
author | Heikki Linnakangas | 2024-07-03 12:53:30 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2024-07-03 12:53:30 +0000 |
commit | a06e8f84a1ac1158ca7d7a95d9df289fe5219502 (patch) | |
tree | 474b3d8962163a33fcc3cbf961b3d88006add241 | |
parent | ae395f0f7edbbf8e9ebe92e2ed3a471192789f0c (diff) |
Tighten check for --forkchild argument when spawning child process
Commit aafc05de1b 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
-rw-r--r-- | src/backend/main/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c index bfd0c5ed658..4672aab8378 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -185,7 +185,7 @@ main(int argc, char *argv[]) else if (argc > 1 && strcmp(argv[1], "--boot") == 0) BootstrapModeMain(argc, argv, false); #ifdef EXEC_BACKEND - else if (argc > 1 && strncmp(argv[1], "--fork", 6) == 0) + else if (argc > 1 && strncmp(argv[1], "--forkchild", 11) == 0) SubPostmasterMain(argc, argv); #endif else if (argc > 1 && strcmp(argv[1], "--describe-config") == 0) |