So I've been programming in C lately and studying Signals and POSIX threads. I know I could wait on a signal in a thread, but I've been wondering if it's possible to have a thread which contains a while loop that will keep executing forever while SIGINT is not received. So basically i'm not waiting on a signal (stopping execution of while loop) but keep executing until the signal is received. Just listening for a certain signal.
I tried googling but to no avail.
Any suggestions? Thanks in advance!!