Fix: handle sys_futex EINTR and EWOULDBLOCK
[lttng-ust.git] / tests / ust-multi-test / ust-multi-test.c
index 7771154014376b79b92ae063601355fd3113ee51..c003c5a93f0f00bf033be2a54cccd7015b7996f5 100644 (file)
@@ -655,8 +655,11 @@ int update_futex(int fd, int active)
 
        if (active) {
                uatomic_set((int32_t *) wait_shm_mmap, 1);
-               futex_async((int32_t *) wait_shm_mmap, FUTEX_WAKE,
-                               INT_MAX, NULL, NULL, 0);
+               if (futex_async((int32_t *) wait_shm_mmap, FUTEX_WAKE,
+                               INT_MAX, NULL, NULL, 0) < 0) {
+                       perror("futex_async");
+                       goto error;
+               }
        } else {
                uatomic_set((int32_t *) wait_shm_mmap, 0);
        }
This page took 0.025055 seconds and 4 git commands to generate.