mosquitto_loop_forever: use nanosleep instead of sleep
The advantage of nanosleep(2) is, that -according to POSIX spec- it does not
interact with signals as sleep(3) does. So it is not affected when used by a
program which is e.g. using alarm(3).
Signed-off-by:
Michael Heimpold <michael.heimpold@i2se.com>
parent
2283585e
Please register or sign in to comment