1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 17:57:45 +02:00

ignore ^C

This commit is contained in:
Jfreegman 2014-06-15 15:36:29 -04:00
parent 2c4f0d593d
commit 53cb4b0248
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -439,6 +439,11 @@ void exit_toxic(Tox *m)
exit(EXIT_SUCCESS);
}
void ignore_SIGINT(int sig)
{
return;
}
static void do_toxic(Tox *m, ToxWindow *prompt)
{
pthread_mutex_lock(&Winthread.lock);
@ -628,6 +633,7 @@ int main(int argc, char *argv[])
sort_friendlist_index();
prompt_init_statusbar(prompt, m);
signal(SIGINT, ignore_SIGINT);
while (true) {
update_unix_time();