xtd 0.2.0
Loading...
Searching...
No Matches

◆ cancel_signal

event<environment, signal_cancel_event_handler> xtd::environment::cancel_signal
static

Occurs when a signal is sent to the current process.

Remarks
This event is used in conjunction with xtd::signal_cancel_event_handler and xtd::signal_cancel_event_args. The xtd::environment::cancel_signal event enables a xtd::signal so the event handler can decide whether to continue executing or terminate.
For more information about handling events, see Handling and Raising Events.
Warning
The xtd::signal::interrupt and xtd::console_special_key::control_c use the same signal (SIGINT).
The xtd::signal::interrupt and xtd::console_special_key::control_c can be cancelled with xtd::environment::cancel_signal event or xtd::console::cancel_key_press event. Both of these events are called when SIGINT is raised.