From b0830e39c3622ab5f7a0cdd5abab646a70a0dec7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Tue, 2 Nov 2004 03:09:06 +0000 Subject: [PATCH] Add comment about memory failure of get_progname exiting the postmaster: exit(1); /* This could exit the postmaster */ --- src/port/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/port/path.c b/src/port/path.c index ca46ed1d94e..5d94227106f 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/path.c,v 1.40 2004/11/01 04:46:56 momjian Exp $ + * $PostgreSQL: pgsql/src/port/path.c,v 1.41 2004/11/02 03:09:06 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -204,7 +204,7 @@ get_progname(const char *argv0) if (progname == NULL) { fprintf(stderr, "%s: out of memory\n", nodir_name); - exit(1); + exit(1); /* This could exit the postmaster */ } progname[strlen(progname) - sizeof(EXE) - 1] = '\0'; nodir_name = progname; -- GitLab