Closed funktioniert closed 8 years ago
Adding process::id(), that returns the pid. Also process::running() indicates if the process is currently running (or a zombie). running() is very convenient but i'm not sure if it's useful in the scope of this library.
process::id()
A
process::running() should have the if-else branch simplified to just be
process::running()
return ::kill(pid_, 0) == 0;
Sorry for the mess.
Adding process::id(), that returns the pid. Also process::running() indicates if the process is currently running (or a zombie). running() is very convenient but i'm not sure if it's useful in the scope of this library.