mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
getpid/pid cleanup
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user