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. Advertisements

  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. Advertisements

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. Garth17
    Replies:
    0
    Views:
    671
    Garth17
    Mar 16, 2005
  2. Replies:
    0
    Views:
    430
  3. Morten Nørgaard
    Replies:
    0
    Views:
    849
    Morten Nørgaard
    Sep 15, 2003
  4. aph
    Replies:
    4
    Views:
    628
    Peter Hansen
    Jan 14, 2006
  5. John den Haan

    Struct initialization leads to linker error

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

    Call windows apps from web apps

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

    SAML token from external STS leads to error

    Marc Scheuner, Feb 26, 2008, in forum: ASP .Net Security
    Replies:
    0
    Views:
    169
    Marc Scheuner
    Feb 26, 2008
  8. Richard Choate

    Web enabled apps/Thin client apps

    Richard Choate, Jul 23, 2003, in forum: ASP General
    Replies:
    2
    Views:
    523
    Chris Barber
    Jul 23, 2003
Loading...