From b324899838c045836b527c4596656e50f8ab35da Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Sun, 9 May 2004 22:29:14 +0000 Subject: [PATCH] Remove misplaced duplicate comment and slightly reformat the version that was in the right place. --- sys/kern/kern_exit.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 44bfa0de2501..8a2b511a8e8c 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -146,12 +146,12 @@ exit1(struct thread *td, int rv) * With this state set: * Any thread entering the kernel from userspace will * thread_exit() in trap(). Any thread attempting to - * sleep will return immediatly - * with EINTR or EWOULDBLOCK, which will hopefully force them - * to back out to userland, freeing resources as they go, and - * anything attempting to return to userland will thread_exit() - * from userret(). thread_exit() will unsuspend us - * when the last other thread exits. + * sleep will return immediatly with EINTR or EWOULDBLOCK, + * which will hopefully force them to back out to userland, + * freeing resources as they go, and anything attempting + * to return to userland will thread_exit() from userret(). + * thread_exit() will unsuspend us when the last other + * thread exits. */ if (thread_single(SINGLE_EXIT)) panic ("Exit: Single threading fouled up"); @@ -164,16 +164,6 @@ exit1(struct thread *td, int rv) p->p_flag &= ~P_SA; thread_single_end(); /* Don't need this any more. */ } - /* - * With this state set: - * Any thread entering the kernel from userspace will thread_exit() - * in trap(). Any thread attempting to sleep will return immediatly - * with EINTR or EWOULDBLOCK, which will hopefully force them - * to back out to userland, freeing resources as they go, and - * anything attempting to return to userland will thread_exit() - * from userret(). thread_exit() will do a wakeup on p->p_numthreads - * if it transitions to 1. - */ p->p_flag |= P_WEXIT; PROC_UNLOCK(p);