kill method

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

Kills the process.

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

On platforms without signal support, including Windows, the call just terminates the process in a platform specific way, and the signal parameter is ignored.

Returns true if the signal is successfully delivered to the process. Otherwise the signal could not be sent, usually meaning that the process is already dead.

Implementation

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/Process/kill.html