master
md 17 lines 301 Bytes
Rendered Raw
1 # Signal
2
3 `Container::Stop()` and `Process::Signal()` cast directly to `WslcSignal`.
4
5 Underlying values:
6
7 - `None = 0`
8 - `SIGHUP = 1`
9 - `SIGINT = 2`
10 - `SIGQUIT = 3`
11 - `SIGKILL = 9`
12 - `SIGTERM = 15`
13
14 ```cpp
15 process.Signal(Signal::SIGINT);
16 container.Stop(Signal::SIGTERM, std::chrono::seconds(10));
17 ```