resolved conflicts for merge of 4f086aeb to gingerbread-plus-aosp

Change-Id: Ice2a6d41a7e9d04eca02e15ed189d648d61b5801
This commit is contained in:
Jean-Baptiste Queru
2010-07-23 13:53:19 -07:00
6 changed files with 137 additions and 0 deletions

View File

@@ -41,9 +41,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.
@@ -52,6 +55,7 @@ int fork(void)
* as a parameter.
*/
cpuacct_add(getuid());
__bionic_atfork_run_child();
}
return ret;
}