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>pull/589/head
parent
2283585e39
commit
26a81747cd
Loading…
Reference in New Issue