summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-13 14:59:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-17 08:42:10 +0200
commite34b7a8d4021ac451bdd8bad5b1a1be30c9897f0 (patch)
treeff931d65c269046b5707406cb4ed8e471348af0d /cpukit
parentRFS: Fix resource leak (diff)
downloadrtems-e34b7a8d4021ac451bdd8bad5b1a1be30c9897f0.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/cancel.c b/cpukit/posix/src/cancel.c
index 0167c0a328..56712d89a9 100644
--- a/cpukit/posix/src/cancel.c
+++ b/cpukit/posix/src/cancel.c
@@ -63,5 +63,5 @@ int pthread_cancel(
break;
}
- return EINVAL;
+ return ESRCH;
}