From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id AAA07630 for ; Fri, 17 Nov 1995 00:17:57 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA29873; Thu, 16 Nov 1995 07:59:45 -0500 Resent-Date: Thu, 16 Nov 1995 14:00:08 +0100 (MET) Old-Return-Path: From: Zoltan Hidvegi Message-Id: <199511161300.OAA02403@bolyai.cs.elte.hu> Subject: Re: kill semantics. To: Rob.Hooft@embl-heidelberg.de (Rob Hooft) Date: Thu, 16 Nov 1995 14:00:08 +0100 (MET) In-Reply-To: <199511161119.MAA06026@nu.EMBL-Heidelberg.DE> from "Rob Hooft" at Nov 16, 95 12:19:06 pm Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: hzoli@cs.elte.hu Resent-Message-Id: <"qEHme.0.eI7.0Npgm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/618 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Rob Hooft wrote: > 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? This should work on Unix systems. But it is not related to zsh. If one ports zsh once to an other OS, it may stop working. It is az well know way to validate lock pid's used in other non-zsh scripts. Zsh kill si just an interface to kill(2), peopel should consult this manpage for details. E.g. kill -sig -pgid works for killing process groups, kill -sig -1 kills all processes. Killing pid 0 kill the current process group. Bye, Zoltan