From 56175b8132348108640342ada8b793f502e21ebf Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Fri, 3 Jan 2014 17:32:45 +0100 Subject: [PATCH] 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. --- bin/vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vagrant b/bin/vagrant index cd12fded5..cd7fbc9d3 100755 --- a/bin/vagrant +++ b/bin/vagrant @@ -3,7 +3,7 @@ # Trap interrupts to quit cleanly. This will be overriden at some point # by Vagrant. This is made to catch any interrupts while Vagrant is # 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 argv = ARGV.dup