diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-16 04:41:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-16 04:41:03 +0000 |
commit | 7ac0169fa1f717c83984b9fa052b6b0bac06cd4a (patch) | |
tree | bcab29a5fd515deb51acd2b227e4c19b5b40de20 /lib/libthread_db/libc_r_db.c | |
parent | 83403f384048c8619e28ffee5bed975e92cf23cc (diff) | |
download | FreeBSD-src-7ac0169fa1f717c83984b9fa052b6b0bac06cd4a.zip FreeBSD-src-7ac0169fa1f717c83984b9fa052b6b0bac06cd4a.tar.gz |
Always acquire the UNIX domain socket subsystem lock (UNP lock)
before dereferencing sotounpcb() and checking its value, as so_pcb
is protected by protocol locking, not subsystem locking. This
prevents races during close() by one thread and use of ths socket
in another.
unp_bind() now assert the UNP lock, and uipc_bind() now acquires
the lock around calls to unp_bind().
Diffstat (limited to 'lib/libthread_db/libc_r_db.c')
0 files changed, 0 insertions, 0 deletions