X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=README;h=659511f7c46eba7260e1297ae247efceaa88b7bf;hp=f7f0dece2249bb764af9932a35cbf1ca57abffa3;hb=ef84facf4b0c23bd695ca9300055e3ffc9b56006;hpb=4cf1675fa5feb3a2e9e9f965e516e55fbf411457 diff --git a/README b/README index f7f0dec..659511f 100644 --- a/README +++ b/README @@ -204,3 +204,10 @@ Interaction with fork() liburcu-bp, which is designed to handle fork() by calling rcu_bp_before_fork, rcu_bp_after_fork_parent and rcu_bp_after_fork_child. + + 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().