watch method
Stream<ProcessSignal> watch(Watch for process signals.
The following ProcessSignals can be listened to:
- ProcessSignal.SIGHUP.
- ProcessSignal.SIGINT. Signal sent by e.g. CTRL-C.
- ProcessSignal.SIGTERM. Not available on Windows.
- ProcessSignal.SIGUSR1. Not available on Windows.
- ProcessSignal.SIGUSR2. Not available on Windows.
- ProcessSignal.SIGWINCH. Not available on Windows.
Other signals are disallowed, as they may be used by the VM.
A signal can be watched multiple times, from multiple isolates, where all callbacks are invoked when signaled, in no specific order.
Source
Stream<ProcessSignal> watch() => _ProcessUtils._watchSignal(this);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/ProcessSignal/watch.html