Hi friends,
'm facing some problem with handling signal (SIGINT).
The requirement is, whenever user presses CTRL+C, the prog should call
a function and than terminate.
I 'm able to do this but in one case it fails.
When any other thread is sleeping, it wont terminate and hence even if
I press ctrl+c, it still waits till that sleeping thread wakes up.
how do I cause the sleeping thread to wake up as soon as ctrl+c is
pressed???
Thanks in advance