From: Luis Lavena Date: 2010-06-26T09:35:12+09:00 Subject: Re: $? is always new? On Jun 25, 6:00 pm, Roger Pack wrote: > >>>> $? > >> => # > >>>> $? > >> => # > > >> What are those phantom processes? > >> -r > > > What platform are you on? What ruby version? For me, with ruby > > 1.8.7.249-2 standard package from Ubuntu Lucid amd64: > > > $ irb > > irb(main):001:0> $? > > => nil > > On windows it appears to behave as expected. > > On linux (Ubuntu, I believe latest revision). > > All built from source: > > [25:1557][rdp@ilab1:~]$ ruby -v > ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux] > [25:1557][rdp@ilab1:~]$ export RUBYOPT= > [25:1558][rdp@ilab1:~]$ irb > irb(main):001:0> $? > => # > irb(main):002:0> $? > => # > irb(main):003:0> $? > => # > irb(main):004:0> exit > [25:1558][rdp@ilab1:~]$ ~/installs/ruby-1.8.7-p174_installed/bin/irb > irb(main):001:0> $? > => # > irb(main):002:0> $? > => # > irb(main):003:0> $? > => # Linux or Windows, all the versions return nil when asked. Seems there is a thread you're running with your irb session that might be spawning a lot. -- Luis Lavena