Fix: handle sys_futex() FUTEX_WAIT interrupted by signal
[userspace-rcu.git] / urcu / static / urcu.h
index c517693ff1cf187982882bf30f412e454ae8d26f..5b9ceecdca5f291dbc2fff96ae7be25113a3750f 100644 (file)
@@ -234,8 +234,13 @@ static inline void wake_up_gp(void)
 {
        if (caa_unlikely(uatomic_read(&gp_futex) == -1)) {
                uatomic_set(&gp_futex, 0);
-               futex_async(&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(&gp_futex, FUTEX_WAKE, 1,
+                               NULL, NULL, 0);
        }
 }
 
This page took 0.022575 seconds and 4 git commands to generate.