MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / SetSignalHandlers

Method SetSignalHandlers

Libraries/unrar/errhnd.cpp:304–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302
303
304void ErrorHandler::SetSignalHandlers(bool Enable)
305{
306 EnableBreak=Enable;
307#ifdef _WIN_ALL
308 SetConsoleCtrlHandler(Enable ? ProcessSignal:NULL,TRUE);
309#else
310 signal(SIGINT,Enable ? ProcessSignal:SIG_IGN);
311 signal(SIGTERM,Enable ? ProcessSignal:SIG_IGN);
312#endif
313}
314
315
316void ErrorHandler::Throw(RAR_EXIT Code)

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected