abort_on_exception()
public
Returns the status of the global ``abort
on exception’‘ condition. The default is false. When
set to true, or if the global $DEBUG flag is
true (perhaps because the command line option -d was
specified) all threads will abort (the process will exit(0)) if an
exception is raised in any thread. See also
Thread::abort_on_exception=.
Show source
/*
* call-seq:
* Thread.abort_on_exception => true or false
*
* Returns the status of the global ``abort on exception'' condition. The
* default is <code>false</code>. When set to <code>true</code>, or if the
* global <code>$DEBUG</code> flag is <code>true</code> (perhaps because the
* command line option <code>-d</code> was specified) all threads will abort
* (the process will <code>exit(0)</code>) if an exception is raised in any
* thread. See also <code>Thread::abort_on_exception=</code>.
*/
static VALUE
rb_thread_s_abort_exc()
{
return ruby_thread_abort?Qtrue:Qfalse;
}