diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-06 15:12:37 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-06 15:12:37 -0800 |
commit | 36fe1e4a463560672cbf8cbfbe45b26fcf2a2377 (patch) | |
tree | f14e51fd3a7fffd9cabfa4cc08a1d414890102b0 /common.cpp | |
parent | 9ee4e4e05c46669ed9c254188fd5aa83aa5374f2 (diff) |
Some initial work towards cutting down the number of fork calls we do
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1952,6 +1952,7 @@ void set_main_thread() { /* Notice when we've forked */ static pid_t initial_pid; + bool is_forked_child(void) { bool is_child_of_fork = (getpid() != initial_pid); if (is_child_of_fork) { |