kill method

bool kill([
  1. ProcessSignal signal = ProcessSignal.sigterm
])

Kill the process running in the pseudo-terminal.

When possible, signal will be sent to the process. This includes Linux and OS X. The default signal is ProcessSignal.sigterm which will normally terminate the process.

Implementation

bool kill([ProcessSignal signal = ProcessSignal.sigterm]) {
  return true;
}