From: Andre Noll Date: Sun, 26 Oct 2014 10:36:35 +0000 (+0100) Subject: command.c: Replace usleep() by nanosleep(). X-Git-Tag: v0.5.4~44^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e7125356421449de4614aca24446f1d198aa9b3b;hp=e7125356421449de4614aca24446f1d198aa9b3b;ds=sidebyside 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. ---