mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-14 09:55:33 +08:00
handle more signal
This commit is contained in:
@@ -203,11 +203,11 @@ int set_buf_size(int fd)
|
||||
void myexit(int a)
|
||||
{
|
||||
if(enable_log_color)
|
||||
puts(RESET);
|
||||
printf("%s\n",RESET);
|
||||
clear_iptables_rule();
|
||||
exit(a);
|
||||
}
|
||||
void INThandler(int sig)
|
||||
void signal_handler(int sig)
|
||||
{
|
||||
|
||||
myexit(0);
|
||||
|
Reference in New Issue
Block a user