summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-05-27 18:45:45 +0000
committerkib <kib@FreeBSD.org>2013-05-27 18:45:45 +0000
commit9aa628d621ec1f41753007ff42c0e1004e57a073 (patch)
tree9c4f9869df2cae9dd38ba6744f7cac15df362085 /lib/libthr
parenteaa828d3a577b0680cd7fa63e4b94c95001ce09e (diff)
downloadFreeBSD-src-9aa628d621ec1f41753007ff42c0e1004e57a073.zip
FreeBSD-src-9aa628d621ec1f41753007ff42c0e1004e57a073.tar.gz
Partially apply the capitalization of the heading word of the sequence
and fix typo. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_sig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c
index cb959a1..86b3a9b 100644
--- a/lib/libthr/thread/thr_sig.c
+++ b/lib/libthr/thread/thr_sig.c
@@ -205,9 +205,9 @@ handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp)
curthread->in_sigsuspend = 0;
/*
- * if thread is in deferred cancellation mode, disable cancellation
+ * If thread is in deferred cancellation mode, disable cancellation
* in signal handler.
- * if user signal handler calls a cancellation point function, e.g,
+ * If user signal handler calls a cancellation point function, e.g,
* it calls write() to write data to file, because write() is a
* cancellation point, the thread is immediately cancelled if
* cancellation is pending, to avoid this problem while thread is in
@@ -229,7 +229,7 @@ handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp)
* We have already reset cancellation point flags, so if user's code
* longjmp()s out of its signal handler, wish its jmpbuf was set
* outside of a cancellation point, in most cases, this would be
- * true. however, ther is no way to save cancel_enable in jmpbuf,
+ * true. However, there is no way to save cancel_enable in jmpbuf,
* so after setjmps() returns once more, the user code may need to
* re-set cancel_enable flag by calling pthread_setcancelstate().
*/
OpenPOWER on IntegriCloud