diff options
author | davidxu <davidxu@FreeBSD.org> | 2002-10-30 02:39:10 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2002-10-30 02:39:10 +0000 |
commit | 0d865413b869cb02101844822e8d9f7a74e401f8 (patch) | |
tree | 7cbd97143c467b479b301c713eda0e5d4bc36df0 /sys | |
parent | 7531bd3c2ff53e246074da26bccd32325d78ff40 (diff) | |
download | FreeBSD-src-0d865413b869cb02101844822e8d9f7a74e401f8.zip FreeBSD-src-0d865413b869cb02101844822e8d9f7a74e401f8.tar.gz |
Don't forget to set syscall result.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_kse.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 540cf37..bc3fe39 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -285,6 +285,8 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap) abortsleep(td2); } mtx_unlock_spin(&sched_lock); + td->td_retval[0] = 0; + td->td_retval[1] = 0; return 0; } } diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 540cf37..bc3fe39 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -285,6 +285,8 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap) abortsleep(td2); } mtx_unlock_spin(&sched_lock); + td->td_retval[0] = 0; + td->td_retval[1] = 0; return 0; } } |