diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:23:36 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:23:36 +0000 |
commit | 1f020b178664857b0e107778d04fb971a58e6230 (patch) | |
tree | c1cd86593b5d354091e0fa3201c5789bec5c53ad /libpthread/linuxthreads.old/cancel.c | |
parent | f1775381f91f1250b20f1949dfd0364ddb0ee9fc (diff) |
- trim any trailing whitespace
Diffstat (limited to 'libpthread/linuxthreads.old/cancel.c')
-rw-r--r-- | libpthread/linuxthreads.old/cancel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads.old/cancel.c b/libpthread/linuxthreads.old/cancel.c index 79409675f..239b821f1 100644 --- a/libpthread/linuxthreads.old/cancel.c +++ b/libpthread/linuxthreads.old/cancel.c @@ -101,7 +101,7 @@ int pthread_cancel(pthread_t thread) /* 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. */ @@ -122,7 +122,7 @@ int pthread_cancel(pthread_t thread) if (dorestart) restart(th); - else + else kill(pid, __pthread_sig_cancel); return 0; |