Windows: Sleep(INFINITE); -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms686298.aspx
POSIX: sleep(UINT_MAX); -- https://linux.die.net/man/3/sleep -- it's not actually forever, but UINT_MAX seconds should be plenty.
_________________________
-- roger