zsh-users
 help / color / mirror / code / Atom feed
From: Rob Hooft <Rob.Hooft@EMBL-Heidelberg.de>
To: zsh-users@math.gatech.edu
Subject: kill semantics.
Date: Thu, 16 Nov 1995 12:19:06 +0100	[thread overview]
Message-ID: <199511161119.MAA06026@nu.EMBL-Heidelberg.DE> (raw)

Hi,

I've been playing around with kill(2) lately. Specifically, I'd like
to use a resource lock-file from a script. The lock-file contains the
PID of the process locking the resource.

To verify whether the lock-file is stale, the script should test whether
the PID still exists. Kill(2) has a neat feature for this:


kill(2)

NAME
  kill - Sends a signal to a process or to a group of processes

[...]
  signal    Specifies the signal. If the signal parameter is a value of 0
            (the null signal), error checking is performed but no signal is
            sent. This can be used to check the validity of the process
            parameter.

This seems to work from ZSH as well: "kill -0 PID" does the check
fine.  But it is not documented. Which makes me think: is this system
specific?

Regards,

-- 
Rob W. W. Hooft ====== You have a computational protein problem? Try WHAT IF! 
= Rob.Hooft@EMBL-Heidelberg.DE, Meyerhofstr. 1, 69117 Heidelberg, Germany. ==
3.0GS$ d-(?) s: a28 C++ UAIOS++(-) UL++++ P++ L++(+++) E++ W++(-) N++(+++) K?
w-- O? M-(--) V(-) PS PE+ Y+ PGP t 5? X+ R tv+ b+ DI? D+ G+ e++++ h(*) !r !y+


                 reply	other threads:[~1995-11-16 11:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=199511161119.MAA06026@nu.EMBL-Heidelberg.DE \
    --to=rob.hooft@embl-heidelberg.de \
    --cc=zsh-users@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).