]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/base.h
Implement controls for file descriptor inheritance
[libs/core.git] / source / io / base.h
index 1fe143e10e18eed4668aac843c3d4905b54f3ede..a6a8827c6d4c28ee981806c4284af063b96de8dd 100644 (file)
@@ -59,6 +59,12 @@ public:
        Blocking is enabled by default. */
        virtual void set_block(bool) = 0;
 
+       /** Sets inheritance mode.  When inheritance is enabled, the file descriptor
+       will persist through Process::execute.
+
+       Inheritance is disabled by default. */
+       virtual void set_inherit(bool) = 0;
+
        /** Returns the current mode flags. */
        Mode get_mode() const { return mode; }