summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/perror.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2011-03-05 20:36:42 +0000
committerdchagin <dchagin@FreeBSD.org>2011-03-05 20:36:42 +0000
commit99b120c8f2e636e27f6443b595784037912ec1c1 (patch)
tree9209ae7d52b59e063547c0ad221d55bcf944a9b9 /lib/libc/stdio/perror.c
parent348e4a6bcd6bc8c99a97a2557afe85146bba0645 (diff)
downloadFreeBSD-src-99b120c8f2e636e27f6443b595784037912ec1c1.zip
FreeBSD-src-99b120c8f2e636e27f6443b595784037912ec1c1.tar.gz
Partially reworked r219042.
The reason for this is a bug at ktrops() where process dereferenced without having a lock. This might cause a panic if ktrace was runned with -p flag and the specified process exited between the dropping a lock and writing sv_flags. Since it is impossible to acquire sx lock while holding mtx switch to use asynchronous enqueuerequest() instead of writerequest(). Rename ktr_getrequest_ne() to more understandable name [1]. Requested by: jhb [1] MFC after: 1 Week
Diffstat (limited to 'lib/libc/stdio/perror.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud