Fix SleepMs function

nanosleep returns 0 when it successfully sleep for requested interval,
if we got errno EINTR, it means the return value will be -1.

BUG=NONE
TEST=NONE

Change-Id: I31879ecf92609643c3990d2ba93a2e08b3f20403
Reviewed-on: https://chromium-review.googlesource.com/830037
Commit-Ready: Zhongze Hu <frankhu@google.com>
Tested-by: Zhongze Hu <frankhu@google.com>
Reviewed-by: Ege Mihmanli <egemih@google.com>
Reviewed-by: Emil Lundmark <lndmrk@chromium.org>
1 file changed
tree: eab8992903cf0aeee42d657b5d9e7def523840b8
  1. .gitignore
  2. COMMIT-QUEUE.ini
  3. LICENSE
  4. README.md
  5. atrusctl.gyp
  6. conf/
  7. dbus_bindings/
  8. dbus_permissions/
  9. init/
  10. src/
README.md

atrusctl

This tool is used to interact with Atrus speakerphones.