summaryrefslogtreecommitdiff
path: root/source4/heimdal
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-08 10:36:10 -0800
committerJeremy Allison <jra@samba.org>2009-01-08 10:36:10 -0800
commitc07ea13d3077f73ad6cb28e9689b120bca6eac74 (patch)
treede6343a083435071db1a70a8ad8145167a4a57f7 /source4/heimdal
parent154e08f275f1d20f0c8bdf1c876dc1ec780b1db2 (diff)
downloadsamba-c07ea13d3077f73ad6cb28e9689b120bca6eac74.tar.gz
samba-c07ea13d3077f73ad6cb28e9689b120bca6eac74.tar.bz2
samba-c07ea13d3077f73ad6cb28e9689b120bca6eac74.zip
Fix race condition in alarm lock processing noticed by Richard Sharpe <realrichardsharpe@gmail.com>.
"It seems to me that if the lock is already held by another process when we enter this code, there is a race between the timeout and the granting. If the lock is subsequently granted, the process releasing the lock will signal the wait variable (or whatever) and our process will be scheduled. However, if the timeout occurs before we are scheduled, the timeout will be delivered first. We will have the lock but will forget we have the lock, and never release it." Jeremy.
Diffstat (limited to 'source4/heimdal')
0 files changed, 0 insertions, 0 deletions