From 71210954265a0c7591a7dc9bead07ae18b8cd12f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 22 Jun 2013 14:00:39 -0400 Subject: [PATCH] urcu signal: remove assertion on exit Signed-off-by: Mathieu Desnoyers --- urcu.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 */ -- 2.34.1