]> git.tuebingen.mpg.de Git - paraslash.git/commit
command.c: Replace usleep() by nanosleep().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Oct 2014 10:36:35 +0000 (11:36 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 9 Nov 2014 10:39:25 +0000 (11:39 +0100)
commite7125356421449de4614aca24446f1d198aa9b3b
tree0e2c54902a520d1826d990d6b845d2c4137d0487
parent97ad8ac8735dfd7a514aa66e9de54f253440c17d
command.c: Replace usleep() by nanosleep().

POSIX.1-2001 declares usleep() obsolete and POSIX.1-2008 removes the
specification. Fortunately, there is only a single user of usleep()
in the tree: com_sender() which needs to retry the command if another
sender command is currently running. This commit changes com_sender()
to call nanosleep() instead of usleep() and adds a comment which
explains why we are going to sleep at this point.
command.c