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