Bug 1721686

Summary: Remove usage of obsolete function usleep()
Product: [Community] GlusterFS Reporter: Vijay Bellur <vbellur>
Component: coreAssignee: Vijay Bellur <vbellur>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, pasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-11 10:38:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vijay Bellur 2019-06-18 21:28:14 UTC
Description of problem:

Excerpt 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()."

Alternate functions like nanosleep() can be used instead of usleep().

Comment 1 Worker Ant 2019-06-20 23:01:00 UTC
REVIEW: https://review.gluster.org/22911 (Replace usleep() with nanosleep()) posted (#1) for review on master by Vijay Bellur

Comment 2 Worker Ant 2019-07-11 10:38:32 UTC
REVIEW: https://review.gluster.org/22911 (Replace usleep() with nanosleep()) merged (#8) on master by Xavi Hernandez