[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070613202028.803964D059F@magilla.localdomain>
Date: Wed, 13 Jun 2007 13:20:28 -0700 (PDT)
From: Roland McGrath <roland@...hat.com>
To: Satoru Takeuchi <takeuchi_satoru@...fujitsu.com>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...l.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Oleg Nesterov <oleg@...sign.ru>
Subject: Re: [BUG] 2.6.22-rc4: wait4() waiting for SIGSTOP may not return if the target process is ptraced
> > The bug is in strace (and is being fixed). It needs to use tgkill instead
> > of kill to send that SIGSTOP to the right thread only.
>
> You mean kill() to specifig thread is fundamentally wrong? If so, current
> kill() is wrong because it can receive pid of non main thread.
The kill call should only be used on process IDs (tgid in linuspeak). This
is what POSIX defines it for. I'm not sure off hand if it's technically a
violation of POSIX that it works for numbers that aren't a POSIX process ID
(aka tgid) but happen happen to be a Linux thread ID (aka pid).
Thanks,
Roland
-
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