Bug 253395

Summary: usleep() function does not suspend execution of the calling process
Product: Documentation Reporter: zegang <zegang.luo>
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Feedback Timeout    
Severity: Affects Many People CC: doc, felix.the.red
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description zegang 2021-02-10 06:53:47 UTC
It shall be "the calling thread" instead of "calling process" on the manual page of "usleep()".

"The usleep() function suspends execution of the calling process until ..."
https://www.freebsd.org/cgi/man.cgi?usleep(3)
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-02-11 03:53:57 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=4956af2a8f0d7723cb09c98e7f5295b156136f70

commit 4956af2a8f0d7723cb09c98e7f5295b156136f70
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-02-11 03:49:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-02-11 03:52:55 +0000

    usleep(3): replace 'process' with 'calling thread'

    PR:     253395
    Reported by:    zegang.luo@qq.com
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation

 lib/libc/gen/usleep.3 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-02-14 00:47:16 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f94e8beadbd82f758c7663cb7115aeec2fbed7fa

commit f94e8beadbd82f758c7663cb7115aeec2fbed7fa
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-02-11 03:49:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-02-14 00:45:49 +0000

    usleep(3): replace 'process' with 'calling thread'

    PR:     253395

    (cherry picked from commit 4956af2a8f0d7723cb09c98e7f5295b156136f70)

 lib/libc/gen/usleep.3 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-02-14 00:47:19 UTC
A commit in branch stable/12 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=5357bd228fca092453c0970ccb54fc08f5deb939

commit 5357bd228fca092453c0970ccb54fc08f5deb939
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-02-11 03:49:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-02-14 00:46:42 +0000

    usleep(3): replace 'process' with 'calling thread'

    PR:     253395

    (cherry picked from commit 4956af2a8f0d7723cb09c98e7f5295b156136f70)

 lib/libc/gen/usleep.3 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Comment 4 Felix Johnson 2021-10-02 01:26:04 UTC
There are three commits that reference this PR (comment #1, comment #2, comment #3).

Do the commits resolve the issue?
Can this PR be closed?