From e34b7a8d4021ac451bdd8bad5b1a1be30c9897f0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 May 2016 14:59:31 +0200 Subject: posix: Fix return status of pthread_cancel() POSIX recommends ESRCH in case no thread exists for the specified identifier. Update #2713. --- cpukit/posix/src/cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit') 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; } -- cgit v1.2.3