aboutsummaryrefslogtreecommitdiff
path: root/libihash/ihash.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-06 01:13:02 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-06 01:13:02 +0100
commita7c7e4c642aa284cb57a855ea94bab90cc2dae3e (patch)
tree8e16d76d65f75da93cb754ef5e9a8f4b6ed77cd9 /libihash/ihash.c
parent051c0a77360a629e047d5267b05cde4cdba0e064 (diff)
downloadhurd-a7c7e4c642aa284cb57a855ea94bab90cc2dae3e.tar.gz
hurd-a7c7e4c642aa284cb57a855ea94bab90cc2dae3e.tar.bz2
hurd-a7c7e4c642aa284cb57a855ea94bab90cc2dae3e.zip
libfshelp/get-identity.c: Avoid spurious ihash removal
Reported by Brent W. Baccala. While some thread has converted a hardref to a weakref and tries to release the hash weakref, another thread might reacquire a hardref, and then convert it to a weakref and try to release it. We thus have to make sure that we really have the last weakref before removing from the hash. * libfshelp/get-identity.c (id_clean): Also check that there are only two weak refs left.
Diffstat (limited to 'libihash/ihash.c')
0 files changed, 0 insertions, 0 deletions