From e597d02d426f58719e89eac148adf9ed93810f73 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Tue, 7 Dec 2010 18:51:35 -0800 Subject: [PATCH] logging: rename_output_file -> handle_pid_change Signed-off-by: Colin McCabe --- src/common/DoutStreambuf.cc | 6 ++++-- src/common/DoutStreambuf.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/DoutStreambuf.cc b/src/common/DoutStreambuf.cc index 469f2c9ece89a..fe4365d898dd8 100644 --- a/src/common/DoutStreambuf.cc +++ b/src/common/DoutStreambuf.cc @@ -313,9 +313,11 @@ set_prio(int prio) this->pbump(2); } -// call after calling daemon() +// Call after calling daemon() +// A change in the process ID sometimes requires us to change our output +// path name. template -int DoutStreambuf::rename_output_file() +int DoutStreambuf::handle_pid_change() { Mutex::Locker l(_dout_lock); if (!(flags & DOUTSB_FLAG_OFILE)) diff --git a/src/common/DoutStreambuf.h b/src/common/DoutStreambuf.h index 386485ec1dbdb..f1aab1bfc7da4 100644 --- a/src/common/DoutStreambuf.h +++ b/src/common/DoutStreambuf.h @@ -59,7 +59,7 @@ public: // Set the priority of the messages being put into the stream void set_prio(int prio); - int rename_output_file(); + int handle_pid_change(); std::string config_to_str() const; -- 2.39.5