summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/libglusterfs.sym
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2019-06-20 15:50:01 -0700
committerXavi Hernandez <xhernandez@redhat.com>2019-07-11 10:37:52 +0000
commit3c1efa0c92445638bbfa57c2e868c79f7d987fc3 (patch)
tree3cc28f420d5aebe771de4985fc669dd99e8a42fa /libglusterfs/src/libglusterfs.sym
parentb82743a5822626e83b233956803421fda9b1c3f9 (diff)
Replace usleep() with nanosleep()
As usleep has been obsoleted, changed all invocations of usleep to nanosleep. From man 3 usleep: "4.3BSD, POSIX.1-2001. POSIX.1-2001 declares this function obsolete; use nanosleep(2) instead. POSIX.1-2008 removes the specification of usleep()." Added a helper function gf_nanosleep() to have a single place for handling edge cases that might arise from the conversion of usleep to nanosleep and allow the sleep to resume with right remaining value upon being interrupted. Fixes: bz#1721686 Change-Id: Ia39ab82c9e0f4669d2c00d4cdf25e38d94ef9f62 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/libglusterfs.sym')
-rw-r--r--libglusterfs/src/libglusterfs.sym1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/libglusterfs.sym b/libglusterfs/src/libglusterfs.sym
index 188cda27bc5..0e24630c6d5 100644
--- a/libglusterfs/src/libglusterfs.sym
+++ b/libglusterfs/src/libglusterfs.sym
@@ -1166,3 +1166,4 @@ glusterfs_mux_volfile_reconfigure
glusterfs_process_svc_detach
mgmt_is_multiplexed_daemon
xlator_is_cleanup_starting
+gf_nanosleep