diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-06-02 16:41:38 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-06-02 16:41:38 +0000 |
commit | 90159e8fede0263971fc50ada9824fce47d630fa (patch) | |
tree | febcfd34cb779e1d629849ba5ea41bd541853cb5 /sys/kern/exec_elf.c | |
parent | fbaa6637e10ca4ab5ef9a75133f034b9945a47fc (diff) |
Coredumping is now single-threaded, so update comment about locking
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r-- | sys/kern/exec_elf.c | 7 |
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 */ |