-
- Downloads
Refactor fork()-related code. We need to do various housekeeping tasks
before we can invoke fork() -- flush stdio buffers, save and restore the profiling timer on Linux with LINUX_PROFILE, and handle BeOS stuff. This patch moves that code into a single function, fork_process(), instead of duplicating it at the various callsites of fork(). This patch doesn't address the EXEC_BACKEND case; there is room for further cleanup there.
Showing
- src/backend/port/beos/support.c 1 addition, 1 deletionsrc/backend/port/beos/support.c
- src/backend/postmaster/Makefile 2 additions, 2 deletionssrc/backend/postmaster/Makefile
- src/backend/postmaster/fork_process.c 80 additions, 0 deletionssrc/backend/postmaster/fork_process.c
- src/backend/postmaster/pgarch.c 3 additions, 18 deletionssrc/backend/postmaster/pgarch.c
- src/backend/postmaster/postmaster.c 11 additions, 109 deletionssrc/backend/postmaster/postmaster.c
- src/backend/postmaster/syslogger.c 3 additions, 21 deletionssrc/backend/postmaster/syslogger.c
- src/include/postmaster/fork_process.h 8 additions, 0 deletionssrc/include/postmaster/fork_process.h
Loading
Please register or sign in to comment