kill method

Future kill ()

Kills the process (with SIGKILL on POSIX operating systems), and returns a future that completes once it's dead.

If this is called after the process is already dead, it does nothing.

Implementation

Future kill() async {
  _process.kill(ProcessSignal.sigkill);
  await exitCode;
}