Bug 1721686 - Remove usage of obsolete function usleep()
Summary: Remove usage of obsolete function usleep()
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-18 21:28 UTC by Vijay Bellur
Modified: 2019-07-11 10:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-07-11 10:38:32 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gluster.org Gerrit 22911 0 None Merged Replace usleep() with nanosleep() 2019-07-11 10:38:31 UTC

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


Note You need to log in before you can comment on or make changes to this bug.