Correct the number of retries in a futex_wake() call.

Sponsored by:	Google SoC 2006
Submitted by:	rdivacky
This commit is contained in:
Alexander Leidinger 2006-08-26 10:36:16 +00:00
parent 7932086ef1
commit 84ed9f91d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161637

View File

@ -306,8 +306,12 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args)
printf("second wakeup\n");
#endif
op_ret = 0;
/* Linux always puts there 0 retries */
op_ret += futex_wake(f2, 0, NULL);
/*
* Linux uses the address of the timespec parameter
* as the number of retries, so any large number will
* be ok.
*/
op_ret += futex_wake(f2, 0x7fffffff, NULL);
ret += op_ret;
}
futex_put(f2);