bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] system() should return != 0 when the process is killed


From: Stephane CHAZELAS
Subject: Re: [bug-gawk] system() should return != 0 when the process is killed
Date: Fri, 11 Mar 2016 10:31:40 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

2016-03-11 10:20:39 +0200, Aharon Robbins:
[...]
> Because it's not right. Ignoring the fact that mawk dies upon
> receipt of a signal.
[...]

To clarify, all awk implementations die upon receipt of most
killing signals. mawk is just the only one that also dies for
the SIGINT and SIGQUIT signals while others don't as they use
system(3) which ignores SIGINT and SIGQUIT in the parent process.

In that regard, mawk's behaviour is not POSIX conformant as
POSIX says the behaviour should be as if system(3) was called,
but whether it's better or worse independently of POSIX
compliance is also arguable.

-- 
Stephane



reply via email to

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