GNU bug report logs - #74788
Incorrect return value for SIGPIPE case

Previous Next

Package: grep;

Reported by: Sachin T <sachintu47 <at> gmail.com>

Date: Wed, 11 Dec 2024 14:01:01 UTC

Severity: normal

Full log


Message #8 received at 74788 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Sachin T <sachintu47 <at> gmail.com>
Cc: 74788 <at> debbugs.gnu.org
Subject: Re: bug#74788: Incorrect return value for SIGPIPE case
Date: Wed, 11 Dec 2024 09:54:47 -0800
On 2024-12-11 04:59, Sachin T wrote:
> Could you suggest the preferred solution for handling this situation on the
> z/OS platform?

Since this problem afflicts many applications (not just grep), the 
preferred solution would be to fix z/OS so that a process terminated by 
a signal has the exit status corresponding to the signal, even if the 
signal arrives during calls by 'exit' to functions registered by 
'atexit'. This is required by POSIX[1] and is what other systems do. Is 
that something you could start the ball rolling on? (I don't use z/OS 
and so cannot file bug reports for it.)

I don't see any straightforward change to 'grep' that would work around 
the z/OS problem. However, if you can think of a change, please let us know.

Also, could you please let us know the z/OS version so that I can 
document this portability problem in Gnulib? Thanks.

[1]: 
https://pubs.opengroup.org/onlinepubs/9799919799/functions/V2_chap02.html#tag_16_04_03_01




This bug report was last modified 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.