skystrife / procxx

A simple process management library for C++ on UNIX platforms.
MIT License
142 stars 28 forks source link

How to kill a running process ? #13

Open kiranpradeep opened 7 years ago

kiranpradeep commented 7 years ago

Is it possible to kill a running process with procxx as is ? Or is up to library user to get pid and manually issue a kill command ?

stle85 commented 7 years ago

How I think only manualy by killing pid. You can get pid from this method

/**
 * Gets the process id.
 */
pid_t id() const