couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [02/47] couchdb commit: updated refs/heads/Update-Sidebar-Ui to c173e52
Date Mon, 19 May 2014 16:17:20 GMT
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/Update-Sidebar-Ui
Commit: e348d4f2da082cee52d11efc6fbc94f1d8a047c9
Parents: fdb2188
Author: Joan Touzet <wohali@apache.org>
Authored: Mon Apr 21 01:30:01 2014 -0400
Committer: Joan Touzet <wohali@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


Mime
View raw message