posix_signal_handler_set_handler


Description:


public bool posix_signal_handler_set_handler (int @signal, PosixSignalHandler handler) throws Error

Sets handler to be called whenever signal is caught by the application.

The user_data parameter will be passed as an argument to handler.

Parameters:

handler

A callback function.

signal

A POSIX signal id number.

user_data

Arbitrary data that will be passed to handler.

Returns:

true on success, false otherwise, in which case throws will be set.


Namespace: Xfce