From c32443a012dfe90d6872af829e8df9b743010c90 Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Wed, 2 Dec 2009 21:44:47 +0000 Subject: 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 --- src/couchdb/couch_os_process.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/couchdb/couch_os_process.erl') 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}; -- cgit v1.2.3