mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-30 03:23:27 +01:00
ignore ^C
This commit is contained in:
parent
2c4f0d593d
commit
53cb4b0248
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user