Raise a SystemExit exception to prevent backtrace
This commit is contained in:
parent
f0c7e944bb
commit
4671526d70
@ -43,11 +43,9 @@ end
|
||||
|
||||
def interactive_shell
|
||||
pid=fork
|
||||
if pid.nil?
|
||||
exec ENV['SHELL']
|
||||
else
|
||||
exec ENV['SHELL'] if pid.nil?
|
||||
Process.wait pid
|
||||
end
|
||||
raise SystemExit, "Aborting due to non-zero exit status" if $? != 0
|
||||
end
|
||||
|
||||
# Kernel.system but with exceptions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user