I wrote a multi-thread application. in thread A, i called kill as below to send a SIGTERM signal.
kill(getpid(), SIGTERM)
in thread B, I have following code to wait for the SIGTERM signal.
sigset_t waitsignalset;
sigemptyset(&waitsignalset);
// Add whatever signal(s) to be processed by...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.