Fix: handle sys_futex() FUTEX_WAIT interrupted by signal
[urcu.git] / urcu / static / urcu.h
index b5fc09f93553578ae32f660b9c65a49a9ea3517f..af8eee442d3849f5756423d7337d16c93f712f34 100644 (file)
@@ -168,8 +168,13 @@ static inline void wake_up_gp(void)
 {
        if (caa_unlikely(uatomic_read(&rcu_gp.futex) == -1)) {
                uatomic_set(&rcu_gp.futex, 0);
-               futex_async(&rcu_gp.futex, FUTEX_WAKE, 1,
-                     NULL, NULL, 0);
+               /*
+                * Ignoring return value until we can make this function
+                * return something (because urcu_die() is not publicly
+                * exposed).
+                */
+               (void) futex_async(&rcu_gp.futex, FUTEX_WAKE, 1,
+                               NULL, NULL, 0);
        }
 }
 
This page took 0.031528 seconds and 4 git commands to generate.