Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > handling CTRL+C...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4056 of 4146
Post > Topic >>

handling CTRL+C in thread

by Neel <a.k.vora@[EMAIL PROTECTED] > Sep 25, 2008 at 10:49 PM

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
 




 2 Posts in Topic:
handling CTRL+C in thread
Neel <a.k.vora@[EMAIL   2008-09-25 22:49:51 
Re: handling CTRL+C in thread
Dave Butenhof <david.b  2008-09-26 06:41:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 9:11:54 CST 2008.