Commit 26a81747 authored by Michael Heimpold's avatar Michael Heimpold
Browse files

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: default avatarMichael Heimpold <michael.heimpold@i2se.com>
parent 2283585e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment