Re: [PATCH v2 4/5] signal: support CLONE_PIDFD with pidfd_send_signal

From
Oleg Nesterov <oleg@redhat.com>
Date
2019-04-18 14:26:07
Also in
lkml
Reply to
Christian Brauner, 2019-04-18
On 04/18, Christian Brauner wrote:
quoted hunk ↗ jump to hunk

+static struct pid *pidfd_to_pid(const struct file *file)
+{
+	if (file->f_op == &pidfd_fops)
+		return file->private_data;
+
+	return tgid_pidfd_to_pid(file);
+}
the patch looks obviously fine to me, but I have an absolutely off-topic
question... why tgid_pidfd_to_pid() has to check d_is_dir() ?

Oleg.
Thread (16 messages) 16 messages, 4 authors, last reply 2019-04-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help