From 0c3663b47dd358c7332d043a2d2c42227764afb6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Tue, 2 Nov 2004 03:34:50 +0000 Subject: [PATCH] Add comment to postmaster.c that get_progname() will call exit if it can't strdup(). --- src/backend/postmaster/postmaster.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index a70ff10860a..a1723e22865 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.435 2004/10/21 19:28:35 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.436 2004/11/02 03:34:50 momjian Exp $ * * NOTES * @@ -313,7 +313,8 @@ PostmasterMain(int argc, char *argv[]) char *userDoption = NULL; int i; - progname = get_progname(argv[0]); + /* This will call exit() if strdup() fails. */ + progname = get_progname(argv[0]); MyProcPid = PostmasterPid = getpid(); -- GitLab