Refactor fork()-related code. We need to do various housekeeping tasks

Neil Conway <neilc@samurai.com>

Commit: 164adc4d3924d5f0310dba24d4035313ca69245d
Author: Neil Conway <neilc@samurai.com>
Date: 2005-03-10T07:14:03Z
Releases: 8.1.0
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.

Files