/* * call-seq: * thr.exit! => thr * thr.kill! => thr * thr.terminate! => thr * * Terminates <i>thr</i> without calling ensure clauses and schedules * another thread to be run, returning the terminated <code>Thread</code>. * If this is the main thread, or the last thread, exits the process. * * See <code>Thread#exit</code> for the safer version. */ static VALUE rb_thread_kill_bang(thread) VALUE thread; { rb_thread_t th = rb_thread_check(thread); rb_kill_thread(th, THREAD_NO_ENSURE); return thread; }