Re: fork with exit [some integer] seems to not change exitstatus in Process.wait2, ruby 2.2.4

Eric Wong <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <20190107005257.ppasruhissxsszlz@dcvr>
Kelly Felkins <[email protected]> wrote:
> I'm also seeing "unexpected throw" messages. Perhaps I'm doing something
> that is causing the unexpected throw, which is causing the exit status to
> be 1.

Looks like IRB implements it's own exit method:

	irb(main):001:0> method :exit
	=> #<Method: main.exit(irb_exit)>

You can use Process.exit inside IRB, instead.

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.