06-16-2002
3,
0
Join Date: Jun 2002
Last Activity: 17 June 2002, 12:31 AM EDT
Location: India
Posts: 3
Thanks Given: 0
Thanked 0 Times in 0 Posts
SIGALRM Help
A Unix system command needs to be executed from a C/C++ program. How do I use the SIGALRM in this case to stop processing the command after a few sec.
For eg, if the command is to connect to a database and the server is down, I would want to try for say 15 sec then give a timeout error.
How do I code this ?