<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pthread_cancel not working on HP 11.23 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861650#M545891</link>
    <description>Manish,&lt;BR /&gt;have you got PHCO_29108 installed ?&lt;BR /&gt;"  ( SR:8606294128 CR:JAGae57868 ) &lt;BR /&gt;        The cancellation operation (pthread_cancel) can race with &lt;BR /&gt;        cancel enable/disable (pthread_setcancelstate). &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        Resolution: &lt;BR /&gt;        While cancelling a thread, detect that the thread has now &lt;BR /&gt;        disabled cancellation."&lt;BR /&gt;&lt;BR /&gt;And another example of these highly annoying non-completed threads:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1039682" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1039682&lt;/A&gt;</description>
    <pubDate>Wed, 13 Sep 2006 02:31:52 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2006-09-13T02:31:52Z</dc:date>
    <item>
      <title>pthread_cancel not working on HP 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861649#M545890</link>
      <description>Hi Friends,&lt;BR /&gt;&lt;BR /&gt;I have below simple piece of code but it doesn't work....even though I am not able to find out any issues with it. Can anyone help me with this.&lt;BR /&gt;&lt;BR /&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include&lt;PTHREAD.H&gt;&lt;BR /&gt;&lt;BR /&gt;void hndlr(void *a){&lt;BR /&gt;  printf("I am in pthread handler\n");&lt;BR /&gt;  return ;&lt;BR /&gt;}&lt;BR /&gt;int main(){&lt;BR /&gt;        pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL);&lt;BR /&gt;#ifdef A        pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL);&lt;BR /&gt;#endif&lt;BR /&gt;        pthread_cleanup_push(hndlr,NULL);&lt;BR /&gt;        pthread_cancel(pthread_self());&lt;BR /&gt;        for(;;);&lt;BR /&gt;        pthread_cleanup_pop(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When i enable asynchronous it works.....even if it is deferred shouldn't the signal get delivered after some time ??/&lt;BR /&gt;&lt;BR /&gt;my machine is &lt;BR /&gt;/tmp/katiyar&amp;gt; uname -a&lt;BR /&gt;HP-UX holmium B.11.23 U 9000/800 1759078586 unlimited-user license&lt;BR /&gt;&lt;/PTHREAD.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 13 Sep 2006 00:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861649#M545890</guid>
      <dc:creator>Manish_33</dc:creator>
      <dc:date>2006-09-13T00:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_cancel not working on HP 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861650#M545891</link>
      <description>Manish,&lt;BR /&gt;have you got PHCO_29108 installed ?&lt;BR /&gt;"  ( SR:8606294128 CR:JAGae57868 ) &lt;BR /&gt;        The cancellation operation (pthread_cancel) can race with &lt;BR /&gt;        cancel enable/disable (pthread_setcancelstate). &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        Resolution: &lt;BR /&gt;        While cancelling a thread, detect that the thread has now &lt;BR /&gt;        disabled cancellation."&lt;BR /&gt;&lt;BR /&gt;And another example of these highly annoying non-completed threads:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1039682" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1039682&lt;/A&gt;</description>
      <pubDate>Wed, 13 Sep 2006 02:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861650#M545891</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-13T02:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_cancel not working on HP 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861651#M545892</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;The link for the thread that you gave was also opened by me and I haven't closed it yet coz till now I haven't got any proper soln. to it. It was a bug in HP as confirmed by them and no official patch number has been told.&lt;BR /&gt;&lt;BR /&gt;Thanks for you response. I am looking at the patch you mentioned.</description>
      <pubDate>Wed, 13 Sep 2006 02:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-cancel-not-working-on-hp-11-23/m-p/3861651#M545892</guid>
      <dc:creator>Manish_33</dc:creator>
      <dc:date>2006-09-13T02:40:12Z</dc:date>
    </item>
  </channel>
</rss>

