summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-06-02 16:41:37 +0000
committerguenther <guenther@openbsd.org>2013-06-02 16:41:37 +0000
commit1344fd6365babc6d6fe454977ce0a49ea2150e40 (patch)
treeef17244d5671f59020b063ba07ae1d0807761aae /sys
parentAdd the TLS relocations (diff)
downloadwireguard-openbsd-1344fd6365babc6d6fe454977ce0a49ea2150e40.tar.xz
wireguard-openbsd-1344fd6365babc6d6fe454977ce0a49ea2150e40.zip
Coredumping is now single-threaded, so update comment about locking
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/exec_elf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 4b1650161fd..df5b09dffcb 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.91 2013/03/28 16:55:25 deraadt Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.92 2013/06/02 16:41:37 guenther Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -1265,8 +1265,9 @@ ELFNAMEEND(coredump_notes)(struct proc *p, void *iocookie, size_t *sizep)
/*
* Now, for each thread, write the register info and any other
- * per-thread notes. Since we're dumping core, we don't bother
- * locking.
+ * per-thread notes. Since we're dumping core, all the other
+ * threads in the process have been stopped and the list can't
+ * change.
*/
TAILQ_FOREACH(q, &pr->ps_threads, p_thr_link) {
if (q == p) /* we've taken care of this thread */