On 02/11/2010 03:16 AM, Tejas Guruswamy wrote:
Basically it should look like this
trap cleanup INT TERM EXIT
Tejas,
That's not correct, see 'man 7 signal'
man trap:
" The condition can be EXIT, 0 (equivalent to EXIT), or a
signal specified using a symbolic name, ***without the SIG prefix***, as
On 13/02/10 05:23, David C. Rankin wrote:
listed in the tables of
signal names in the header defined in the Base
Definitions volume of IEEE Std 1003.1-2001, Chapter 13, Headers; for
example, HUP, INT,
QUIT, TERM. Implementations may permit names with the SIG
prefix or ignore case in signal names as an extension. Setting a trap
for SIGKILL or
SIGSTOP produces undefined results.
" (emphasis mine)
Accepting SIG* is not guaranteed, if it works it's an extension
Here's an example from the same man page
"trap - INT QUIT TERM EXIT"
Regards,
Tejas
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org