I was wondering if there is a statement which I can use to have a program sleep indefinitely (probably using sleep function??). (I am obviously doing this waiting for a signal that is going to be delivered at some time to this process and it will wake it up)
Share
You want pause().EDIT: The most likely circumstances under which you might want to use
pause()will actually cause a race condition, so prefersigsuspend().