Replace `exit 1` with `abort`

According to the documentation, Kernel.abort calls Kernel.exit(false). The failure status 1 is an implementation detail on Unix-like systems. In theory, a future system could exist where 1 indicates a successful exit and 0 indicates a failure.
This commit is contained in:
Erik Michaels-Ober 2014-01-03 17:32:45 +01:00
parent 32d8b507c1
commit 56175b8132
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# Trap interrupts to quit cleanly. This will be overriden at some point # Trap interrupts to quit cleanly. This will be overriden at some point
# by Vagrant. This is made to catch any interrupts while Vagrant is # by Vagrant. This is made to catch any interrupts while Vagrant is
# initializing which have historically resulted in stack traces. # initializing which have historically resulted in stack traces.
Signal.trap("INT") { exit 1 } Signal.trap("INT") { abort }
# Split arguments by "--" if its there, we'll recombine them later # Split arguments by "--" if its there, we'll recombine them later
argv = ARGV.dup argv = ARGV.dup