1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-14 05:23:01 +01:00

Merge branch 'Dako300-master'

This commit is contained in:
jfreegman 2017-05-19 20:05:52 -04:00
commit 09710327c5
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -104,9 +104,16 @@ static struct user_password {
int len;
} user_password;
static time_t last_signal_time;
static void catch_SIGINT(int sig)
{
Winthread.sig_exit_toxic = 1;
time_t cur_time = get_unix_time();
if (difftime(cur_time, last_signal_time) <= 1) {
Winthread.sig_exit_toxic = 1;
} else {
last_signal_time = cur_time;
}
}
static void catch_SIGSEGV(int sig)