Re: termination of my ruby apps leads to error



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



.



Relevant Pages

  • Re: Using the date to allow users to have a grace period
    ... First, if the PC's date is anywhere before the last recorded date, terminate ... version every 300 executions, ... leave a trace so that even if it is uninstalled and re-installed completely ... > their PC after the 30 days to be within the 30 day trial period, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Using the date to allow users to have a grace period
    ... First, if the PC's date is anywhere before the last recorded date, terminate ... they're obviously tampering with the date. ... version every 300 executions, ... leave a trace so that even if it is uninstalled and re-installed completely ...
    (microsoft.public.dotnet.framework.windowsforms)
  • [wireless] rt2870sta BUGs on shutdown, 2.6.30.2->git.today+git.wireless.today
    ... $subject appears (at glance) to happen because threads have already ... Terminate the TimerQThr pid=4557! ... Stack: ... Call Trace: ...
    (Linux-Kernel)
  • Re: fopen v. open and more
    ... The SUS and POSIX define the error return value as "-1", ... an EOF or a read error, terminate the program after terminating the ...
    (comp.unix.programmer)