summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-04-10 02:31:24 +0000
committerdas <das@FreeBSD.org>2005-04-10 02:31:24 +0000
commit7a8e8974c6883f1271b991a821221694cdddabdd (patch)
tree165ccabd054b6478825428998a06587d4d4a4118 /sys/fs/smbfs
parentc5df80448a267ce23fd68d7f4fcb3025bc18eb51 (diff)
downloadFreeBSD-src-7a8e8974c6883f1271b991a821221694cdddabdd.zip
FreeBSD-src-7a8e8974c6883f1271b991a821221694cdddabdd.tar.gz
Suspend all other threads in the process while generating a core dump.
The main reason for doing this is that the ELF dump handler expects the thread list to be fixed while the dump header is generated, so an upcall that occurs at the wrong time can lead to buffer overruns and other Bad Things. Another solution would be to grab sched_lock in the ELF dump handler, but we might as well single-thread, since the process is about to die. Furthermore, I think this should ensure that the register sets in the core file are sequentially consistent.
Diffstat (limited to 'sys/fs/smbfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud