]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
logging: rename_output_file -> handle_pid_change
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 8 Dec 2010 02:51:35 +0000 (18:51 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 8 Dec 2010 02:51:35 +0000 (18:51 -0800)
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/common/DoutStreambuf.cc
src/common/DoutStreambuf.h

index 469f2c9ece89a49765e0a8200d959cb57ff255fb..fe4365d898dd84156957126d8cd2afce15239f51 100644 (file)
@@ -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 <typename charT, typename traits>
-int DoutStreambuf<charT, traits>::rename_output_file()
+int DoutStreambuf<charT, traits>::handle_pid_change()
 {
   Mutex::Locker l(_dout_lock);
   if (!(flags & DOUTSB_FLAG_OFILE))
index 386485ec1dbdb61c217a977656780aa83b36723a..f1aab1bfc7da458a7baa4059c5c2b45e0b4b6d31 100644 (file)
@@ -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;