diff options
author | Mark Hammond <mhammond@apache.org> | 2009-12-02 21:44:47 +0000 |
---|---|---|
committer | Mark Hammond <mhammond@apache.org> | 2009-12-02 21:44:47 +0000 |
commit | c32443a012dfe90d6872af829e8df9b743010c90 (patch) | |
tree | b910d78be1c6f6b2a139b2f69d1c682be2427c7c /src/couchdb/couch_external_server.erl | |
parent | 8aca27f80f170598196d16e4e9841fda88ca93e5 (diff) |
COUCHDB-588: don't make log noise when an OS process chooses to terminate normally
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_external_server.erl')
-rw-r--r-- | src/couchdb/couch_external_server.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_external_server.erl b/src/couchdb/couch_external_server.erl index 8e632510..8e495320 100644 --- a/src/couchdb/couch_external_server.erl +++ b/src/couchdb/couch_external_server.erl @@ -34,6 +34,7 @@ execute(Pid, JsonReq) -> init([Name, Command]) -> ?LOG_INFO("EXTERNAL: Starting process for: ~s", [Name]), ?LOG_INFO("COMMAND: ~s", [Command]), + process_flag(trap_exit, true), Timeout = list_to_integer(couch_config:get("couchdb", "os_process_timeout", "5000")), {ok, Pid} = couch_os_process:start_link(Command, [{timeout, Timeout}]), |