summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/cancel.c
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:39:30 +0200
commit9fd72713c9397b1e23484ad57b6ceb3523d4493c (patch)
tree796502c3d3d9419876b5678e29aec1b22f8e47cc /cpukit/posix/src/cancel.c
parentcapture: Fix use of per-processor data (diff)
downloadrtems-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 'cpukit/posix/src/cancel.c')
-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 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;
}