diff options
-rw-r--r-- | cpukit/posix/src/cancel.c | 2 | ||||
-rw-r--r-- | testsuites/psxtests/psxcancel/init.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/posix/src/cancel.c b/cpukit/posix/src/cancel.c index 0267b48c81..f103d6574b 100644 --- a/cpukit/posix/src/cancel.c +++ b/cpukit/posix/src/cancel.c @@ -64,5 +64,5 @@ int pthread_cancel( break; } - return EINVAL; + return ESRCH; } diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c index 4af4e76652..2ab56c2337 100644 --- a/testsuites/psxtests/psxcancel/init.c +++ b/testsuites/psxtests/psxcancel/init.c @@ -111,9 +111,9 @@ void *countTaskAsync(void *ignored) sc = pthread_setcanceltype(12, &old); fatal_posix_service_status( sc, EINVAL, "cancel type EINVAL" ); - puts( "Init - pthread_cancel - bad ID - EINVAL" ); + puts( "Init - pthread_cancel - bad ID - ESRCH" ); sc = pthread_cancel(0x100); - fatal_posix_service_status( sc, EINVAL, "cancel bad Id" ); + fatal_posix_service_status( sc, ESRCH, "cancel bad Id" ); /* Start countTask deferred */ { |