How to enable SIGINT signal for system() call in a pthread in C?
问题 The below manual on system() says it blocks SIGINT and SIGQUIT signal for any binary program run through system() call. https://man7.org/linux/man-pages/man3/system.3.html#:~:text=The%20system()%20library%20function,the%20command%20has%20been%20completed. Psedo Code: thread_1() { ... system("binary application"); } main() { ... pid = pthread_create(thread_1); pthread_cancel(pid); } pthread_cancel issues SIGINT to thread 1 which kill the thread 1, but not the binary application. How to make