From: Ulrich Drepper Date: Sun, 16 Feb 2003 08:52:22 +0000 (+0000) Subject: (pthread_cancel): Use the result of __pthread_kill. X-Git-Tag: cvs/glibc-2_3_2~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9cb48ab58fd8f619f5c7f13c2188161dbdef254;p=thirdparty%2Fglibc.git (pthread_cancel): Use the result of __pthread_kill. --- diff --git a/nptl/pthread_cancel.c b/nptl/pthread_cancel.c index 0dd97a27e52..153cb198d82 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; }