diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-01-25 05:15:15 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-01-25 05:15:15 +0000 |
commit | c16ebb0f67eca76a4a33faca1b5ea6633bb90c8a (patch) | |
tree | 52170941184af526a9f8c438e57ce07eb8492972 /src/backend/commands/user.c | |
parent | fc75484550eb2320882936c1ad90a6c7e09d7a33 (diff) | |
download | postgresql-c16ebb0f67eca76a4a33faca1b5ea6633bb90c8a.tar.gz postgresql-c16ebb0f67eca76a4a33faca1b5ea6633bb90c8a.zip |
getpid/pid cleanup
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |