summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-12-09 17:31:23 +0100
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-12-09 17:31:23 +0100
commit92523fb4b54ddfcdf9586f8a2140fdc8b1d0793b (patch)
treef13efa413c41bd62e373bb0406b3f053ce9c026a /bin
parent66bb46df223168bbf499744666b40c9575121790 (diff)
downloadgitbook-92523fb4b54ddfcdf9586f8a2140fdc8b1d0793b.zip
gitbook-92523fb4b54ddfcdf9586f8a2140fdc8b1d0793b.tar.gz
gitbook-92523fb4b54ddfcdf9586f8a2140fdc8b1d0793b.tar.bz2
Force process.exit at end of build
Diffstat (limited to 'bin')
-rw-r--r--bin/build.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build.js b/bin/build.js
index 965a211..4f8b74e 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -51,6 +51,11 @@ var makeBuildFunc = function(converter) {
// Exit process with failure code
process.exit(-1);
+ })
+ .then(function() {
+ // Prevent badly behaving plugins
+ // from making the process hang
+ process.exit(0);
});
};
};