kill abstract method
- ProcessSignalsignal =ProcessSignal.sigterm
Kills the process.
Where possible, sends thesignal to the process. This includesLinux and OS X. The default signal isProcessSignal.sigtermwhich will normally terminate the process.
On platforms without signal support, including Windows, the calljust terminates the process in a platform specific way, and thesignal parameter is ignored.
Returnstrue if the signal is successfully delivered to theprocess. Otherwise the signal could not be sent, usually meaningthat the process is already dead.
Implementation
bool kill([ProcessSignal signal = ProcessSignal.sigterm]);