Is it a good practice to call pthread_sigmask in a thread created by std::thread?
问题 1) I'm new to std::thread and I would like to know whether it is a good practice to call pthread_sigmask() to block some signals in a particular thread created by std::thread . I don't want the new thread to receive signals such as SIGTERM, SIGHUP, etc., because the main process has already installed handlers for these signals. So, is it a good practice to call pthread_sigmask() to block some signals in a thread created by std::thread ? 2) Also, I believe the effect of pthread_sigmask(SIG