summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-09-24 00:38:15 +0000
committerjhb <jhb@FreeBSD.org>2004-09-24 00:38:15 +0000
commit7b666b4137707dee58b6dde684884e3355a5d894 (patch)
treed68e4ec9b47354fc81f6ed7d5db45d44b2ef01a7 /sys/kern/kern_exit.c
parent49654e152d8d6cacaf2e6cefc6c5e7b48ebe00f4 (diff)
downloadFreeBSD-src-7b666b4137707dee58b6dde684884e3355a5d894.zip
FreeBSD-src-7b666b4137707dee58b6dde684884e3355a5d894.tar.gz
A modest collection of various and sundry style, spelling, and whitespace
fixes. Submitted by: bde (mostly)
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 74670e5..f98b75f 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -144,24 +144,24 @@ retry:
/*
* Kill off the other threads. This requires
- * Some co-operation from other parts of the kernel
- * so it may not be instant.
- * With this state set:
- * Any thread entering the kernel from userspace will
+ * some co-operation from other parts of the kernel
+ * so it may not be instantaneous. 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
+ * sleep will return immediately with EINTR or EWOULDBLOCK
+ * which will hopefully force them to back out to userland
+ * freeing resources as they go. Any thread attempting
* to return to userland will thread_exit() from userret().
- * thread_exit() will unsuspend us when the last other
- * thread exits.
+ * thread_exit() will unsuspend us when the last of the
+ * other threads exits.
* If there is already a thread singler after resumption,
- * calling thread_single will fail, in the case, we just
+ * calling thread_single will fail; in that case, we just
* re-check all suspension request, the thread should
* either be suspended there or exit.
*/
if (thread_single(SINGLE_EXIT))
goto retry;
+
/*
* All other activity in this process is now stopped.
* Threading support has been turned off.
@@ -193,7 +193,7 @@ retry:
/*
* Check if any loadable modules need anything done at process exit.
- * e.g. SYSV IPC stuff
+ * E.g. SYSV IPC stuff
* XXX what if one of these generates an error?
*/
EVENTHANDLER_INVOKE(process_exit, p);
OpenPOWER on IntegriCloud