summaryrefslogtreecommitdiff
path: root/pthread_setschedparam.c
diff options
context:
space:
mode:
authorrpj <rpj>2003-08-12 05:33:15 +0000
committerrpj <rpj>2003-08-12 05:33:15 +0000
commit614c09bf607cf77c70c7435cd615c9f8b684bc5e (patch)
treede94124f8ff2044807be3a2dd856a55286948ea6 /pthread_setschedparam.c
parenta250b09c42f9a261da78ecec6226d722e27eea67 (diff)
Invalid thread param now returns ESRCH instead of EINVAL.
Diffstat (limited to 'pthread_setschedparam.c')
-rw-r--r--pthread_setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_setschedparam.c b/pthread_setschedparam.c
index 2e795b9..1a24f1f 100644
--- a/pthread_setschedparam.c
+++ b/pthread_setschedparam.c
@@ -47,7 +47,7 @@ pthread_setschedparam(pthread_t thread, int policy,
/* Validate the thread id. */
if (thread == NULL || thread->threadH == 0)
{
- return EINVAL;
+ return ESRCH;
}
/* Validate the scheduling policy. */