From: Simon Schubert Date: Sat, 7 Mar 2009 16:37:16 +0000 (+0100) Subject: don't loop printing the diagnostic "waiting for lwps to exit" X-Git-Tag: v2.3.1~313 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/ef1c4d7f6c17ef9dfc624e1e0427ccfb7227dba8 don't loop printing the diagnostic "waiting for lwps to exit" This diagnostic never was really useful and only clutters the message buffer. Also don't poll the process state once a second, but rely on the wakeups from exiting threads. --- diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 0fd4380cd1..22f39fad77 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -249,11 +249,7 @@ killlwps(struct lwp *lp) * Wait for everything to clear out. */ while (p->p_nthreads > 1) { - if (bootverbose) - kprintf("killlwps: waiting for %d lwps of pid " - "%d to die\n", - p->p_nthreads - 1, p->p_pid); - tsleep(&p->p_nthreads, 0, "killlwps", hz); + tsleep(&p->p_nthreads, 0, "killlwps", 0); } }