Bug 253395 - usleep() function does not suspend execution of the calling process
Summary: usleep() function does not suspend execution of the calling process
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-10 06:53 UTC by zegang
Modified: 2021-10-02 01:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?