aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/beos/support.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-03-10 07:14:03 +0000
committerNeil Conway <neilc@samurai.com>2005-03-10 07:14:03 +0000
commit164adc4d3924d5f0310dba24d4035313ca69245d (patch)
tree4a7dfc4714ac642f31b1a60d31ecdc4ba1d59065 /src/backend/port/beos/support.c
parente829f822239186df59829afae5cc2769b783630b (diff)
downloadpostgresql-164adc4d3924d5f0310dba24d4035313ca69245d.tar.gz
postgresql-164adc4d3924d5f0310dba24d4035313ca69245d.zip
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.
Diffstat (limited to 'src/backend/port/beos/support.c')
-rw-r--r--src/backend/port/beos/support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/port/beos/support.c b/src/backend/port/beos/support.c
index 2c0b3a9d495..3bfb6ae0d4a 100644
--- a/src/backend/port/beos/support.c
+++ b/src/backend/port/beos/support.c
@@ -265,7 +265,7 @@ beos_startup(int argc, char **argv)
-/* The behavior of fork is borken on beos regarding shared memory. In fact
+/* The behavior of fork is broken on beos regarding shared memory. In fact
all shared memory areas are clones in copy on write mode in the new process.
We need to do a remapping of these areas. Just afer the fork we performe the