termination of my ruby apps leads to error

Discussion in 'Ruby' started by Junkone, Jan 13, 2008.

  1. Junkone

    Junkone Guest

    I always get a error like this when i press Ctrl C to terminate my
    program. Is there a better way to terminate a prob.

    ? Error in my_thread_global_end(): 1 threads didn't exit
     
    Junkone, Jan 13, 2008
    #1
    1. Advertising

  2. Junkone

    Martin Boese Guest

    If I am not mistaken it's the SIGINT handler that produces the trace (assuming
    you use a posix system):

    Try:

    Signal::trap('INT') do
    # terminate and wait for your threads
    exit
    end

    ...on windows you might have to catch the 'EXIT' signal instead.. (?)


    martin



    On Sunday 13 January 2008 21:39:58 Junkone wrote:
    > I always get a error like this when i press Ctrl C to terminate my
    > program. Is there a better way to terminate a prob.
    >
    > ? Error in my_thread_global_end(): 1 threads didn't exit
     
    Martin Boese, May 13, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Morten Nørgaard
    Replies:
    0
    Views:
    757
    Morten Nørgaard
    Sep 15, 2003
  2. aph
    Replies:
    4
    Views:
    415
    Peter Hansen
    Jan 14, 2006
  3. John den Haan

    Struct initialization leads to linker error

    John den Haan, Feb 25, 2007, in forum: C Programming
    Replies:
    4
    Views:
    296
    John den Haan
    Feb 25, 2007
  4. anonymous

    Call windows apps from web apps

    anonymous, Feb 22, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    222
    anonymous
    Feb 28, 2005
  5. Marc Scheuner

    SAML token from external STS leads to error

    Marc Scheuner, Feb 26, 2008, in forum: ASP .Net Security
    Replies:
    0
    Views:
    101
    Marc Scheuner
    Feb 26, 2008
Loading...

Share This Page