From c16ebb0f67eca76a4a33faca1b5ea6633bb90c8a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 25 Jan 1998 05:15:15 +0000 Subject: getpid/pid cleanup --- src/backend/commands/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/commands/user.c') diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 67d06b82c54..b0763bd7a5d 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -51,7 +51,7 @@ void UpdatePgPwdFile(char* sql) { */ filename = crypt_getpwdfilename(); tempname = (char*)malloc(strlen(filename) + 12); - sprintf(tempname, "%s.%d", filename, getpid()); + sprintf(tempname, "%s.%d", filename, MyProcPid); /* Copy the contents of pg_user to the pg_pwd ASCII file using a the SEPCHAR * character as the delimiter between fields. Then rename the file to its -- cgit v1.2.3