Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Sigint

  1. #1
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Sigint

    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.
    Last edited by klam; 09-25-2007 at 11:36 PM.

  • #2
    Gox
    Gox is offline
    Regular Coder Gox's Avatar
    Join Date
    May 2006
    Location
    Ontario, Canada
    Posts
    392
    Thanks
    2
    Thanked 20 Times in 20 Posts
    Ha, saves me from telling you to go read the Signal library.

    Glad you got it working!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •