Thread (49 messages) flat view 49 messages, 11 authors, 2018-11-20

Re: [PATCH] proc: allow killing processes via file descriptors

From: Daniel Colascione <hidden>
Date: 2018-11-19 02:23:56
Also in: linux-fsdevel, lkml

On Sun, Nov 18, 2018 at 3:17 AM, Christian Brauner [off-list ref] wrote:
+static int proc_tgid_open(struct inode *inode, struct file *file)
+{
+       /* grab reference to struct pid */
+       file->private_data = get_pid(proc_pid(inode));
Why grab another reference to the struct pid when the inode already has one?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help