From 614c09bf607cf77c70c7435cd615c9f8b684bc5e Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 12 Aug 2003 05:33:15 +0000 Subject: Invalid thread param now returns ESRCH instead of EINVAL. --- pthread_getschedparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pthread_getschedparam.c') diff --git a/pthread_getschedparam.c b/pthread_getschedparam.c index e796a88..081bfe3 100644 --- a/pthread_getschedparam.c +++ b/pthread_getschedparam.c @@ -47,7 +47,7 @@ pthread_getschedparam(pthread_t thread, int *policy, /* Validate the thread id. */ if (thread == NULL || thread->threadH == 0) { - return EINVAL; + return ESRCH; } /* -- cgit v1.2.3