lkml.org 
[lkml]   [2013]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND 1/2] proc: change return values while get_proc_task err
On Mon, 9 Dec 2013 20:11:54 +0800 Rui Xiang <rui.xiang@huawei.com> wrote:

> While getting proc task error, it shoule return -ESRCH.
>
> ...
>
> --- a/fs/proc/base.c
> +++ b/fs/proc/base.c
> @@ -174,9 +174,10 @@ static int get_task_root(struct task_struct *task, struct path *root)
> static int proc_cwd_link(struct dentry *dentry, struct path *path)
> {
> struct task_struct *task = get_proc_task(dentry->d_inode);
> - int result = -ENOENT;
> + int result = -ESRCH;

I suppose so. But there is risk here of breaking existing applications
and I don't think this problem is serious enough to justify that risk?



\
 
 \ /
  Last update: 2013-12-11 00:41    [W:0.041 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site