We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since Riftshadow has several threads / connections open, we should consider capturing at least the following signals using signal or sigaction.
signal
sigaction
kill -9
There may be others. These are the ones that spring to mind though. Note that sigaction is Linux-only I believe.
Example:
int main(void) { signal(SIGINT, sigIntHandler); } void sigIntHandler(int signum) { // Some database connection cleanup exit(1); }
int main(void) { struct sigaction psa; memset (&psa, 0, sizeof (psa)); psa.sa_handler = sigIntHandler; sigaction (SIGINT, &psa, NULL); } void sigIntHandler(int signum) { // Some database connection cleanup exit(1); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since Riftshadow has several threads / connections open, we should consider capturing at least the following signals using
signal
orsigaction
.kill -9
and the like are usedThere may be others. These are the ones that spring to mind though. Note that
sigaction
is Linux-only I believe.Example:
The text was updated successfully, but these errors were encountered: