View Full Version : Sigint

09-25-2007, 11: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.

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

Glad you got it working!