X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=README;h=659511f7c46eba7260e1297ae247efceaa88b7bf;hp=56e98d768e960ede0a80245a8a1a725218de33d4;hb=ef84facf4b0c23bd695ca9300055e3ffc9b56006;hpb=5e77fc1f94c3572fca067d37667d74f8165e2434 diff --git a/README b/README index 56e98d7..659511f 100644 --- a/README +++ b/README @@ -205,6 +205,9 @@ Interaction with fork() rcu_bp_before_fork, rcu_bp_after_fork_parent and rcu_bp_after_fork_child. - Applications that use call_rcu() are required to invoke - call_rcu_after_fork_child() from the child process after a - successful fork() system call that is not followed by exec(). + Applications that use call_rcu() and that fork() without + doing an immediate exec() must take special action. The parent + must invoke call_rcu_before_fork() before the fork() and + call_rcu_after_fork_parent() after the fork(). The child + process must invoke call_rcu_after_fork_child(). + These three APIs are suitable for passing to pthread_atfork().