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.
EDITED: nevermind i've solved it.. should've read the signal library first.