From e9cb48ab58fd8f619f5c7f13c2188161dbdef254 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 16 Feb 2003 08:52:22 +0000 Subject: (pthread_cancel): Use the result of __pthread_kill. --- nptl/pthread_cancel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nptl/pthread_cancel.c') diff --git a/nptl/pthread_cancel.c b/nptl/pthread_cancel.c index 0dd97a27e5..153cb198d8 100644 --- a/nptl/pthread_cancel.c +++ b/nptl/pthread_cancel.c @@ -27,6 +27,7 @@ pthread_cancel (th) pthread_t th; { volatile struct pthread *pd = (volatile struct pthread *) th; + int result = 0; while (1) { @@ -49,7 +50,7 @@ pthread_cancel (th) /* The cancellation handler will take care of marking the thread as canceled. */ - __pthread_kill (th, SIGCANCEL); + result = __pthread_kill (th, SIGCANCEL); break; } @@ -61,5 +62,5 @@ pthread_cancel (th) break; } - return 0; + return result; } -- cgit v1.2.3