You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/03/28 21:15:11 UTC
[2/2] git commit: Fix double-printing when ulimit fix is applied
Fix double-printing when ulimit fix is applied
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/6877917a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/6877917a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/6877917a
Branch: refs/heads/master
Commit: 6877917afe0a4913bdd1e1d1bbe2757009e09c1e
Parents: b397e60
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Mar 28 16:14:54 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Mar 28 16:14:54 2014 -0400
----------------------------------------------------------------------
coho | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/6877917a/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index c9651cc..b648b4c 100755
--- a/coho
+++ b/coho
@@ -20,6 +20,7 @@ under the License.
var fs = require('fs');
var path = require('path');
+var child_process = require('child_process');
try {
var optimist = require('optimist');
var shjs = require('shelljs');
@@ -2114,7 +2115,7 @@ function main() {
var ulimit = execHelper('ulimit -S -n', true, true);
if (ulimit && ulimit < 2000) {
// re-run with the new ulimit, hide the ulimit command but don't hide the output, don't allow failure
- execHelper('/bin/bash -c \'ulimit -S -n 4096; exec "' + process.argv[0] + '" "' + process.argv.slice(1).join('" "') + '"\'', 2, false);
+ child_process.spawn('/bin/bash', ['-c', 'ulimit -S -n 4096; exec "' + process.argv[0] + '" "' + process.argv.slice(1).join('" "') + '"'], {stdio:'inherit'});
return;
}