summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorbjk <bjk@FreeBSD.org>2013-01-05 00:23:26 +0000
committerbjk <bjk@FreeBSD.org>2013-01-05 00:23:26 +0000
commit604b10857db1d0d52761b12ecca7150ff74190d8 (patch)
tree9ca412c6be898329d838b2503b666166d7eb3cc9 /sys/kern/kern_synch.c
parentafd567e6cf4cc835ad967fddcfcf72330c3467c9 (diff)
downloadFreeBSD-src-604b10857db1d0d52761b12ecca7150ff74190d8.zip
FreeBSD-src-604b10857db1d0d52761b12ecca7150ff74190d8.tar.gz
Fix some minor inaccuracies introduced in r243251.
Also correct the comment in kern_synch.c which was the source of the problematic text. Reviewed by: kib (previous version) Approved by: hrs (mentor)
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index e2e4081..73dfd70 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -133,10 +133,10 @@ sleepinit(void)
* General sleep call. Suspends the current thread until a wakeup is
* performed on the specified identifier. The thread will then be made
* runnable with the specified priority. Sleeps at most timo/hz seconds
- * (0 means no timeout). If pri includes PCATCH flag, signals are checked
- * before and after sleeping, else signals are not checked. Returns 0 if
+ * (0 means no timeout). If pri includes the PCATCH flag, let signals
+ * interrupt the sleep, otherwise ignore them while sleeping. Returns 0 if
* awakened, EWOULDBLOCK if the timeout expires. If PCATCH is set and a
- * signal needs to be delivered, ERESTART is returned if the current system
+ * signal becomes pending, ERESTART is returned if the current system
* call should be restarted if possible, and EINTR is returned if the system
* call should be interrupted by the signal (return EINTR).
*
OpenPOWER on IntegriCloud