Repository: couchdb Updated Branches: refs/heads/1.6.x eef869330 -> d0c712f89
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/d0c712f8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d0c712f8 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d0c712f8 Branch: refs/heads/1.6.x Commit: d0c712f892fdbab34496359f3eec7e3291110409 Parents: eef8693 Author: Joan Touzet <[email protected]> Authored: Mon Apr 21 01:30:01 2014 -0400 Committer: Joan Touzet <[email protected]> Committed: Sun May 4 14:11:02 2014 -0400 ---------------------------------------------------------------------- bin/couchdb.tpl.in | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/d0c712f8/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
