Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unix Signals/alarm question

Status
Not open for further replies.

glwong

Programmer
Jul 13, 2001
15
US
I am writing a program which uses UNIX timers and signals. My program also implements third party software which has it's own signal handler. When my timer expires and sends a SIGALRM signal it goes to the third party software's signal handler instead of my own. The third party's signal handler only handles SIGALRM. I have to use the alarm() function, is it possible for my timer to send a signal other than a SIGALRM so that my signal handler will recieive the signal?

Thanks,
Greg
 
A possible workaround would be to start a different process, then this process would do a sleep() and after that a kill() to your original process using whatever signal you need.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top