signal method
Sends signal
to the process.
This is meant for sending specific signals. If you just want to kill the process, use kill instead.
Throws an UnsupportedError on Windows.
Implementation
void signal(ProcessSignal signal) {
if (Platform.isWindows) {
throw UnsupportedError(
"TestProcess.signal() isn't supported on Windows.");
}
_process.kill(signal);
}