summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-08-07 21:22:56 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-08-07 21:22:56 +0000
commit2290c8730c2239e466cfdda2a75bf13c8855a42f (patch)
tree33cc5b977f833a3a9dbee2153f832a8479f389c8 /sys
parent6d5bb3c18125188e32ccc9d193f4a6895a2380bb (diff)
return EBUSY in processready
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/systrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 88b3aeb5165..3c6e4d6d155 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -892,10 +892,10 @@ int
systrace_processready(struct str_process *strp)
{
if (ISSET(strp->flags, STR_PROC_ONQUEUE))
- return (EINVAL);
+ return (EBUSY);
if (!ISSET(strp->flags, STR_PROC_WAITANSWER))
- return (EINVAL);
+ return (EBUSY);
if (strp->proc->p_stat != SSLEEP)
return (EBUSY);