for sigprocmask single-threaded process function testing