mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Switch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
if page mapped MAP_ANON linux uses private algorithm too. Disscussed with: jhb MFC after: 3 Days
This commit is contained in:
parent
953bb3b992
commit
815cb72a0c
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ futex_get0(uint32_t *uaddr, struct futex **newf, uint32_t flags)
|
|||
*newf = tmpf = NULL;
|
||||
|
||||
error = umtx_key_get(uaddr, TYPE_FUTEX, (flags & FUTEX_SHARED) ?
|
||||
PROCESS_SHARE : THREAD_SHARE, &key);
|
||||
AUTO_SHARE : THREAD_SHARE, &key);
|
||||
if (error)
|
||||
return (error);
|
||||
retry:
|
||||
|
|
|
|||
Loading…
Reference in a new issue