Function gix_tempfile::signal::setup
source · pub fn setup(mode: Mode)
Available on crate feature
signals
only.Expand description
Initialize signal handlers and other state to keep track of tempfiles, and must be called before the first tempfile is created,
allowing to set the mode
in which signal handlers are installed.
Only has an effect the first time it is called.
Note that it is possible to not call this function and instead call
registry::cleanup_tempfiles_signal_safe()
from a signal handler under the application’s control.