public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kasper Dupont <kasperd@daimi.au.dk>
To: root@chaos.analogic.com
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: if_exist_pid()
Date: Tue, 16 Jul 2002 19:42:06 +0200	[thread overview]
Message-ID: <3D345AEE.7CCFDC5B@daimi.au.dk> (raw)
In-Reply-To: Pine.LNX.3.95.1020716131206.19310A-100000@chaos.analogic.com

"Richard B. Johnson" wrote:
> 
> Anybody know the 'correct' way of determining if a pid still
> exists?  I've been using "kill(pid, 0)" and, if it does not
> return an error, it is supposed to exist.

That is correct.

> Sending signal 0 to a pid sometimes returns 0, even if the pid
> is long-gone

Really? That would mean there is a bug in kill(). Of course
you can get return value 0 if the pid has been recycled, but
otherwise it should not happen.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:razrep@daimi.au.dk
or mailto:mcxumhvenwblvtl@skrammel.yaboo.dk

  reply	other threads:[~2002-07-16 17:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-16 17:19 if_exist_pid() Richard B. Johnson
2002-07-16 17:42 ` Kasper Dupont [this message]
2002-07-19 14:55 ` if_exist_pid() Hubertus Franke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D345AEE.7CCFDC5B@daimi.au.dk \
    --to=kasperd@daimi.au.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox