diff options
Diffstat (limited to 'libc/bionic/fork.c')
-rw-r--r-- | libc/bionic/fork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/bionic/fork.c b/libc/bionic/fork.c index e20f548..8d3ea4b 100644 --- a/libc/bionic/fork.c +++ b/libc/bionic/fork.c @@ -40,9 +40,12 @@ int fork(void) * of error, or in the parent process */ __timer_table_start_stop(1); + __bionic_atfork_run_prepare(); + ret = __fork(); if (ret != 0) { /* not a child process */ __timer_table_start_stop(0); + __bionic_atfork_run_parent(); } else { /* * Newly created process must update cpu accounting. @@ -51,6 +54,7 @@ int fork(void) * as a parameter. */ cpuacct_add(getuid()); + __bionic_atfork_run_child(); } return ret; } |