-
January 5th, 2004, 11:48 AM
#1
Catching CTRL+C signal...
I am using "select()" to select from a read list.
the timeval is set to 1/2 second.
I have many objects allocated in which a CTRL+C or CTRL+BREAK would leak if i dont free them up.
So, what is a good strategy to catch CTRL+C so i may break out of the select() loop and free what needs be.
example source would be handy, for i have tried using "signal()" and was not able to get it to work appropriatly.
This source will be running on win32 as well as linux.
thanks ahead of time.
andy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|