summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-07-04 06:59:28 +0000
committermtm <mtm@FreeBSD.org>2003-07-04 06:59:28 +0000
commitc8bcc1e2f7c3b27923bc5f5c7d62cefdcb9708d0 (patch)
tree7d423c615b5ea90acd2feb99136f4fdac806bccd /sys
parent944ca52c58f2f01b55d450a473099cc3def1c2b2 (diff)
downloadFreeBSD-src-c8bcc1e2f7c3b27923bc5f5c7d62cefdcb9708d0.zip
FreeBSD-src-c8bcc1e2f7c3b27923bc5f5c7d62cefdcb9708d0.tar.gz
style(9)
o Remove double-spacing, and while I'm here add a couple of braces as well. Requested by: bde
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_thr.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index 92890d0..9f24057 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -238,29 +238,23 @@ thr_kill(struct thread *td, struct thr_kill_args *uap)
p = td->td_proc;
error = 0;
-
PROC_LOCK(p);
-
- FOREACH_THREAD_IN_PROC(p, ttd)
+ FOREACH_THREAD_IN_PROC(p, ttd) {
if (ttd == uap->id)
break;
-
+ }
if (ttd == NULL) {
error = ESRCH;
goto out;
}
-
if (uap->sig == 0)
goto out;
-
if (!_SIG_VALID(uap->sig)) {
error = EINVAL;
goto out;
}
-
tdsignal(ttd, uap->sig, SIGTARGET_TD);
out:
PROC_UNLOCK(p);
-
return (error);
}
OpenPOWER on IntegriCloud