Repository: couchdb Updated Branches: refs/heads/master fdb2188af -> e348d4f2d
When backgrounding couchdb, close stdout/stderr COUCHDB-2220 COUCHDB-1669 Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e348d4f2 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e348d4f2 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e348d4f2 Branch: refs/heads/master Commit: e348d4f2da082cee52d11efc6fbc94f1d8a047c9 Parents: fdb2188 Author: Joan Touzet <woh...@apache.org> Authored: Mon Apr 21 01:30:01 2014 -0400 Committer: Joan Touzet <woh...@apache.org> Committed: Mon Apr 21 01:30:01 2014 -0400 ---------------------------------------------------------------------- bin/couchdb.tpl.in | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/e348d4f2/bin/couchdb.tpl.in ---------------------------------------------------------------------- diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in index 538ebcb..f2027f1 100644 --- a/bin/couchdb.tpl.in +++ b/bin/couchdb.tpl.in @@ -270,6 +270,9 @@ start_couchdb () { echo "Apache CouchDB has started, time to relax." else if test "$RECURSED" = "true"; then + # close stdout / stderr + exec 1>&- + exec 2>&- while true; do export HEART_COMMAND export HEART_BEAT_TIMEOUT