Date: Sun, 20 Jun 2004 22:41:21 -0700 From: Sean McNeil <sean@mcneil.com> To: Koryn Grant <koryn@endace.com> Cc: freebsd-threads@freebsd.org Subject: Re: kill(pid,0) sends a signal or not? Message-ID: <1087796481.46307.1.camel@server.mcneil.com> In-Reply-To: <Pine.LNX.4.56.0406211725240.12063@prefect.et.endace.com> References: <1087794678.46146.4.camel@server.mcneil.com> <Pine.LNX.4.56.0406211725240.12063@prefect.et.endace.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2004-06-20 at 22:26, Koryn Grant wrote: > On Sun, 20 Jun 2004, Sean McNeil wrote: > > > Any info on how threads are suppose to behave when a process does a > > kill(pid,0) would be greatly appreciated. > > The Single Unix Specification speaks thusly about kill(): > > "If sig is 0 (the null signal), error checking is performed but no signal is > actually sent. The null signal can be used to check the validity of pid." Thanks, Koryn. It looks like what I'm seeing with the 0 value is how kse/pthread is waking up another thread through signalcontext. All looks legit. I thought that it was getting there from a kill(). Cheers, Sean
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1087796481.46307.1.camel>