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:40:43 +0200 |
commit | 94b1ba5aedfff76a9b42721e5109679ac9d417e2 (patch) | |
tree | cbc3c8d7899ae6dad32178128995d1cb68287225 /cpukit | |
parent | sparc: Fix window underflow trap handler (diff) | |
download | rtems-94b1ba5aedfff76a9b42721e5109679ac9d417e2.tar.bz2 |
posix: Fix return status of pthread_cancel()
POSIX recommends ESRCH in case no thread exists for the specified
identifier.
Update #2713.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/posix/src/cancel.c | 2 |
1 files changed, 1 insertions, 1 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; } |