-
Notifications
You must be signed in to change notification settings - Fork 7
process kill
Alairion edited this page May 8, 2021
·
2 revisions
nes::process::kill
(1) bool kill();
- Try to kill the process. If the process is successfully killed, it is joined and its return code become available.
None.
- Returns
true
if the process was successfully killed,false
otherwise.
-
joinable()
returnstrue
.
-
joinable()
returnsfalse
.
- May throw a
std::runtime_error
if the process's return code can not be obtained.
- On Windows, calls
TerminateProcess
On Posix systems, callskill
to send aSIGTERM
to the process