I am using a timer in my C++ code through setitimer function from sys/time.h. This maps the SIGALRM signal to my timer handler method. After this I am not able to use sleep function. I am assuming it is because sleep uses SIGALRM signal as well. Can you suggest any workaround for this problem?
Thanks for replying.
You can try using select() just as a timer. I don’t know if it uses SIGALRM or not but it should be simple to test. Something like: