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_os_process.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_os_process.erl')
-rw-r--r-- | src/couchdb/couch_os_process.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/couchdb/couch_os_process.erl b/src/couchdb/couch_os_process.erl index 244a59f5..72b715c3 100644 --- a/src/couchdb/couch_os_process.erl +++ b/src/couchdb/couch_os_process.erl @@ -162,6 +162,9 @@ handle_cast(Msg, OsProc) -> ?LOG_DEBUG("OS Proc: Unknown cast: ~p", [Msg]), {noreply, OsProc}. +handle_info({Port, {exit_status, 0}}, #os_proc{port=Port}=OsProc) -> + ?LOG_INFO("OS Process terminated normally", []), + {stop, normal, OsProc}; handle_info({Port, {exit_status, Status}}, #os_proc{port=Port}=OsProc) -> ?LOG_ERROR("OS Process died with status: ~p", [Status]), {stop, {exit_status, Status}, OsProc}; |