We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 110c88d commit 223d14aCopy full SHA for 223d14a
src/backend/postmaster/postmaster.c
@@ -1024,6 +1024,11 @@ PostmasterMain(int argc, char *argv[])
1024
fprintf(fpidfile, "%d\n", MyProcPid);
1025
fclose(fpidfile);
1026
/* Should we remove the pid file on postmaster exit? */
1027
+
1028
+ /* Make PID file world readable */
1029
+ if (chmod(external_pid_file, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) != 0)
1030
+ write_stderr("%s: could not change permissions of external PID file \"%s\": %s\n",
1031
+ progname, external_pid_file, strerror(errno));
1032
}
1033
else
1034
write_stderr("%s: could not write external PID file \"%s\": %s\n",
0 commit comments