killForcefully method
Implementation
Future<int> killForcefully(
Process process, {
bool debugLogging = false,
}) {
final processId = process.pid;
// Use sigint here instead of sigkill. See
// https://github.com/flutter/flutter/issues/117415.
if (debugLogging) {
print('Sending SIGINT to $processId.');
}
Process.killPid(processId, ProcessSignal.sigint);
return process.exitCode;
}