kill abstract method

bool kill([
  1. ProcessSignal? signal
])
inherited

Kills the current running process.

Without signal, kills the command and all its descendants: sigterm first, then sigkill for the ones still running after 5 seconds. With signal, sends it to the command only (ProcessSignal.sigkill kills its descendants too).

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]);