mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Add comment about memory failure of get_progname exiting the postmaster:
exit(1); /* This could exit the postmaster */
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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)
|
if (progname == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: out of memory\n", nodir_name);
|
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';
|
progname[strlen(progname) - sizeof(EXE) - 1] = '\0';
|
||||||
nodir_name = progname;
|
nodir_name = progname;
|
||||||
|
Reference in New Issue
Block a user