make kill() and pid() part of the public interface of ProcessImplementation
[libasyncio] / asyncio / async_process.hpp
index b0bdf0f..bc56b43 100644 (file)
@@ -123,10 +123,12 @@ class ProcessImplementation : public IOImplementation
       ///returns the exit code of the process (if in stopped state)
       int exitCode() const { return m_exit_code; }
 
+      bool kill(const Signal signal);
 
-   protected:
+      /// returns the pid of the child process
+      pid_t pid() { return m_pid; }
 
-      bool kill(const Signal signal);
+   protected:
 
       void setChildState(pid_t pid, int status);