Improved peer client connection websocat error handling.

This commit is contained in:
ravinsp
2020-08-06 22:48:25 +05:30
parent d4a786e3b9
commit 4719dfcf2a
5 changed files with 21 additions and 18 deletions

View File

@@ -204,6 +204,7 @@ namespace util
sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGINT);
sigaddset(&mask, SIGPIPE);
pthread_sigmask(SIG_BLOCK, &mask, NULL);
}