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:
parent
32d8b507c1
commit
56175b8132
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue