From: Mathieu Desnoyers Date: Sat, 22 Jun 2013 18:00:39 +0000 (-0400) Subject: urcu signal: remove assertion on exit X-Git-Tag: v0.8.0~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=71210954265a0c7591a7dc9bead07ae18b8cd12f;p=urcu.git urcu signal: remove assertion on exit Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu.c b/urcu.c index 1d5c06f..759b94b 100644 --- a/urcu.c +++ b/urcu.c @@ -513,14 +513,14 @@ void rcu_init(void) void rcu_exit(void) { - struct sigaction act; - int ret; - - ret = sigaction(SIGRCU, NULL, &act); - if (ret) - urcu_die(errno); - assert(act.sa_sigaction == sigrcu_handler); - assert(cds_list_empty(®istry)); + /* + * Don't unregister the SIGRCU signal handler anymore, because + * call_rcu threads could still be using it shortly before the + * application exits. + * Assertion disabled because call_rcu threads are now rcu + * readers, and left running at exit. + * assert(cds_list_empty(®istry)); + */ } #endif /* #ifdef RCU_SIGNAL */