diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2003-07-04 06:59:28 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-07-04 06:59:28 +0000 |
commit | 71cfaac0b029efc52428019fd4a86984089c9fe0 (patch) | |
tree | 7d423c615b5ea90acd2feb99136f4fdac806bccd /sys/kern/kern_thr.c | |
parent | a10d5f02c8a710b70123879ad60c4adfb5dcaa95 (diff) | |
download | src-71cfaac0b029efc52428019fd4a86984089c9fe0.tar.gz src-71cfaac0b029efc52428019fd4a86984089c9fe0.zip |
style(9)
o Remove double-spacing, and while I'm here add a couple
of braces as well.
Requested by: bde
Notes
Notes:
svn path=/head/; revision=117215
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 92890d0610df..9f2405751e27 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); } |