From c962f5a19217404192ddd72e1ba8a1830fdba675 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 9 Sep 2005 03:05:37 +0000 Subject: remove duplicated p_canceled setting and extra whitespace --- libpthread/linuxthreads/cancel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads/cancel.c b/libpthread/linuxthreads/cancel.c index 333925ef8..dbba7eef4 100644 --- a/libpthread/linuxthreads/cancel.c +++ b/libpthread/linuxthreads/cancel.c @@ -89,13 +89,12 @@ int pthread_cancel(pthread_t thread) } pextricate = th->p_extricate; - th->p_canceled = 1; pid = th->p_pid; /* If the thread has registered an extrication interface, then invoke the interface. If it returns 1, then we succeeded in dequeuing the thread from whatever waiting object it was enqueued - with. In that case, it is our responsibility to wake it up. + with. In that case, it is our responsibility to wake it up. And also to set the p_woken_by_cancel flag so the woken thread can tell that it was woken by cancellation. */ -- cgit v1.2.3