Thread (6 messages) 6 messages, 1 author, 2025-03-31

[Bug 219947] Undocumented EAGAIN behavior for clone/pthread_create

From: bugzilla-daemon@kernel.org
Date: 2025-03-28 18:28:39

https://bugzilla.kernel.org/show_bug.cgi?id=219947

Carlos O'Donell (carlos@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos@redhat.com
--- Comment #1 from Carlos O'Donell (carlos@redhat.com) ---
Error number EGAIN is the best error return code for this scenario, from among
those that pthread_create() can return.

The in-progress execve() could fail, at which point pthread_create() called
again would succeed.

It deserves documenting that pthread_create() could fail with EAGAIN if an
in-progress execve() is making forward-progress ahead of the thread, but could
fail, in which case the thread could be created later.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help