]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/process/pipe.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / process / pipe.hpp
index 8307fa8c78ec92a520a4ac4980ba69cd2645d8d5..201d0fa6219313480a9caab4ba41c92af94e91d1 100644 (file)
@@ -123,8 +123,8 @@ struct basic_pipebuf : std::basic_streambuf<CharT, Traits>
     ///Destructor -> writes the frest of the data
     ~basic_pipebuf()
     {
-        if (is_open())
-            overflow(Traits::eof());
+        if (basic_pipebuf::is_open())
+            basic_pipebuf::overflow(Traits::eof());
     }
 
     ///Move construct from a pipe.
@@ -167,10 +167,12 @@ struct basic_pipebuf : std::basic_streambuf<CharT, Traits>
             if (this->pptr() == this->epptr())
             {
                 bool wr = this->_write_impl();
-                *this->pptr() = ch;
-                this->pbump(1);
                 if (wr)
+                {
+                    *this->pptr() = ch;
+                    this->pbump(1);
                     return ch;
+                }
             }
             else
             {