HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pthread_cancel not working on HP 11.23
Operating System - HP-UX
1836426
Members
3557
Online
110100
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 05:51 PM
09-12-2006 05:51 PM
pthread_cancel not working on HP 11.23
Hi Friends,
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.
#include
#include
void hndlr(void *a){
printf("I am in pthread handler\n");
return ;
}
int main(){
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL);
#ifdef A pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL);
#endif
pthread_cleanup_push(hndlr,NULL);
pthread_cancel(pthread_self());
for(;;);
pthread_cleanup_pop(0);
}
When i enable asynchronous it works.....even if it is deferred shouldn't the signal get delivered after some time ??/
my machine is
/tmp/katiyar> uname -a
HP-UX holmium B.11.23 U 9000/800 1759078586 unlimited-user license
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.
#include
#include
void hndlr(void *a){
printf("I am in pthread handler\n");
return ;
}
int main(){
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL);
#ifdef A pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL);
#endif
pthread_cleanup_push(hndlr,NULL);
pthread_cancel(pthread_self());
for(;;);
pthread_cleanup_pop(0);
}
When i enable asynchronous it works.....even if it is deferred shouldn't the signal get delivered after some time ??/
my machine is
/tmp/katiyar> uname -a
HP-UX holmium B.11.23 U 9000/800 1759078586 unlimited-user license
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 07:31 PM
09-12-2006 07:31 PM
Re: pthread_cancel not working on HP 11.23
Manish,
have you got PHCO_29108 installed ?
" ( SR:8606294128 CR:JAGae57868 )
The cancellation operation (pthread_cancel) can race with
cancel enable/disable (pthread_setcancelstate).
Resolution:
While cancelling a thread, detect that the thread has now
disabled cancellation."
And another example of these highly annoying non-completed threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1039682
have you got PHCO_29108 installed ?
" ( SR:8606294128 CR:JAGae57868 )
The cancellation operation (pthread_cancel) can race with
cancel enable/disable (pthread_setcancelstate).
Resolution:
While cancelling a thread, detect that the thread has now
disabled cancellation."
And another example of these highly annoying non-completed threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1039682
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 07:40 PM
09-12-2006 07:40 PM
Re: pthread_cancel not working on HP 11.23
Hi Peter,
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.
Thanks for you response. I am looking at the patch you mentioned.
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.
Thanks for you response. I am looking at the patch you mentioned.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP