aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2005-04-10 02:31:24 +0000
committerDavid Schultz <das@FreeBSD.org>2005-04-10 02:31:24 +0000
commitf97c3df18decb837eca280b25eccedcb1c81ee16 (patch)
tree165ccabd054b6478825428998a06587d4d4a4118 /sys/fs
parent11853de0a109d330dccb4b9b8f594516302e8923 (diff)
downloadsrc-f97c3df18decb837eca280b25eccedcb1c81ee16.tar.gz
src-f97c3df18decb837eca280b25eccedcb1c81ee16.zip
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.
Notes
Notes: svn path=/head/; revision=144851
Diffstat (limited to 'sys/fs')
0 files changed, 0 insertions, 0 deletions