git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae395f0)
Tighten check for --forkchild argument when spawning child process
Wed, 3 Jul 2024 12:53:30 +0000 (15:53 +0300)
Wed, 3 Jul 2024 12:53:30 +0000 (15:53 +0300)
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


diff --git a/src/backend/main/main.c b/src/backend/main/main.c
index bfd0c5ed6584f260f575163a9f516ed16420ab9b..4672aab83786ce41235f4719c30b2fc02d5d63b4 100644 (file)
--- 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)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /