diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-13 14:59:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-17 08:39:30 +0200 |
commit | 9fd72713c9397b1e23484ad57b6ceb3523d4493c (patch) | |
tree | 796502c3d3d9419876b5678e29aec1b22f8e47cc /testsuites/psxtests/psxcancel | |
parent | capture: Fix use of per-processor data (diff) | |
download | rtems-9fd72713c9397b1e23484ad57b6ceb3523d4493c.tar.bz2 |
posix: Fix return status of pthread_cancel()
POSIX recommends ESRCH in case no thread exists for the specified
identifier.
Close #2713.
Diffstat (limited to 'testsuites/psxtests/psxcancel')
-rw-r--r-- | testsuites/psxtests/psxcancel/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ { |