...

View Full Version : Sigint



klam
09-25-2007, 10:11 PM
Hi, im running a while(1) in my code and the only way to end the loop is by ctrl-c in the terminal to end the program, but I need to finish executing the rest of the program, so how do i go about doing something like while(!SIGINT) or inside the code something like if signal received == SIGINT then break loop.

EDITED: nevermind i've solved it.. should've read the signal library first.

Gox
09-27-2007, 12:44 AM
Ha, saves me from telling you to go read the Signal library.

Glad you got it working!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum