Allow ignoring of SIGINT
Summary
Add an option (.e.g --IgnoreSigint 1
) which allows to ignore SIGINT
.
iOS has a feature which enables apps to keep running in the background for a certain amount of time:
https://developer.apple.com/documentation/uikit/uiapplication/1623031-beginbackgroundtask
However, even when we're making use of that, iOS is sending SIGINT
to the app process, as soon as the user swipes away the app. (Sends it into background.)
Tor is currently hardcoded to stop working, when it receives that SIGINT
:
https://gitlab.torproject.org/tpo/core/tor/-/blob/main/src/app/main/main.c#L223-228
What is the expected behavior?
When the mentioned configuration option is set, Tor just ignores the SIGINT
and continues running, to enable processing in the background.