Thread (9 messages) flat view 9 messages, 3 authors, 2024-02-07

Re: [PATCH] pidfd: getfd should always report ESRCH if a task is exiting

From: Tycho Andersen <tycho@tycho.pizza>
Date: 2024-02-06 18:09:37
Also in: lkml

On Tue, Feb 06, 2024 at 07:06:07PM +0100, Oleg Nesterov wrote:
Or we can check task->files != NULL rather than PF_EXITING.

To me this looks even better, but looks more confusing without a comment.
OTOH, imo this needs a comment anyway ;)
I thought about this, but I didn't really understand the null check in
exit_files(); if it can really be called more than once, are there
other cases where task->files == NULL that we really should report
EBADF?

Tycho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help