[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: portability of 'kill -name'?

From: Paul Eggert
Subject: Re: portability of 'kill -name'?
Date: Thu, 20 Jul 2006 00:53:49 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Eric Blake <address@hidden> writes:

> I know it is not portable to do "trap '' TERM", since ash only accepts
> signal numbers.  But is it portable to do 'kill -TERM', or must I do
> 'kill -15'?  The manual doesn't currently mention any pitfalls of kill.

Unix version 7 didn't support 'kill -TERM'.  I don't know which Unixes
have it these days, but I suspect most do.

POSIX (without the XSI extension) doesn't support either syntax;
you're supposed to say 'kill -s TERM'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]