[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130723164305.GA28460@redhat.com>
Date: Tue, 23 Jul 2013 18:43:05 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Mike Galbraith <bitbucket@...ine.de>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: ptrace(PTRACE_ATTACH) [no intervering wait]
ptrace(PTRACE_DETACH) may leave tracee stuck
Damn. Sorry for noise Mike,
On 07/23, Oleg Nesterov wrote:
>
> OTOH, in this particular case pldd.c doesn't really need PTRACE_DETACH,
> it can simply exit.
No it can't, I forgot that exit_ptrace() doesn't (and can't) clear
->exit_code. And this is another reason why PTRACE_DETACH needs the
stopped tracee.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists