Browse Source

[LibOS] Do not delete futex_waiter from waiters list twice on FUTEX_WAIT

borysp 6 years ago
parent
commit
7bb9ac7813
1 changed files with 0 additions and 3 deletions
  1. 0 3
      LibOS/shim/src/sys/shim_futex.c

+ 0 - 3
LibOS/shim/src/sys/shim_futex.c

@@ -202,9 +202,6 @@ int shim_do_futex(int* uaddr, int op, int val, void* utime, int* uaddr2, int val
                 /* DEP 1/28/17: Should return ETIMEDOUT, not EAGAIN, on timeout. */
                 if (ret == -EAGAIN)
                     ret = -ETIMEDOUT;
-                if (ret == -ETIMEDOUT) {
-                    del_futex_waiter(&waiter, futex);
-                }
                 lock(&hdl->lock);
                 /* Chia-Che 10/17/17: FUTEX_WAKE should remove the waiter
                  * from the list; if not, we should remove it now. */