[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4DADA119.40503@aknet.ru>
Date: Tue, 19 Apr 2011 18:50:01 +0400
From: Stas Sergeev <stsp@...et.ru>
To: Oleg Nesterov <oleg@...hat.com>
CC: Linux kernel <linux-kernel@...r.kernel.org>
Subject: Re: [path][rfc] add PR_DETACH prctl command [2/3]
The attached patch adds the can_wait_task() and
can_wait_task_ptrace() functions by splitting out the
checks from wait_consider_task().
int ret = wait_consider_task(wo, 0, p);
gets then replaced by
ret = can_wait_task(wo, p);
if (!ret)
continue;
ret = wait_consider_task(wo, 0, p);
View attachment "02_cwaittsk.diff" of type "text/plain" (3109 bytes)
Powered by blists - more mailing lists