Operating System - HP-UX
1835388 Members
3095 Online
110078 Solutions
New Discussion

Malfunctioning of signal caused by library libpthread (?)

 
see call 1201019986
Occasional Contributor

Malfunctioning of signal caused by library libpthread (?)

Hi everybody,
On a HPUX 11.00 system, C function signal, when used in a program wich is compiled and linked with library libpthread, does not work normally when receiving signal SIGALRM : it will not call the function func it points to (set with instruction : signal (SIGALRM, func); )
Otherwise,when the program using function signal is compiled and linked without libpthread, function signal works normally...
Has anybody any explanation ?
Any help greatly appreciated.
Regards.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Malfunctioning of signal caused by library libpthread (?)

Just a hint:

Rather than re-posting, you could bounce your original post back to the top of the list simply by posting a reply yourself.

Good luck,
Pete

Pete

Re: Malfunctioning of signal caused by library libpthread (?)

Have you read the section on thread implications on the man page for signal.h ?

man 5 signal

There some more info in the pthread man page:

man pthread

HTH

Duncan

I am an HPE Employee
Accept or Kudo
see call 1201019986
Occasional Contributor

Re: Malfunctioning of signal caused by library libpthread (?)

Thank you Pete. Actually, I didn't know what was more accurate between the general section and the languages one. That's why I preferred to post the same message a second time in the languages section, thinking it would get more hits. And it did. Thanks again.
Pete Randall
Outstanding Contributor

Re: Malfunctioning of signal caused by library libpthread (?)

My fault, I didn't notice that they were in two different sections. Many of us monitor the parent HP-UX section and thus see both entries. I really must learn to read more carefully.

Hope you get your answer,
Pete

Pete