]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63248] Ignore SIGPIPE
authorDmitry Goncharov <dgoncharov@users.sf.net>
Fri, 21 Oct 2022 22:54:39 +0000 (18:54 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 22 Oct 2022 13:45:40 +0000 (09:45 -0400)
commit5b1ca277caefca44baf0aeaea2e32766e9bff097
treeb34f936b18c5a17f03fec62fc5720ecc3b7c2b63
parent7c71df5695720dcf5947a7eba1682452ee497288
[SV 63248] Ignore SIGPIPE

Don't terminate when make's output is redirected to a pipe and the
reader exits early; e.g.:
  $ echo 'all:; sleep 2' | make -f- -j2 -O |:

This lets us unlink temporary files, and tell the user that make was
not able to write its output.
Reported by Frank Heckenbach <f.heckenbach@fh-soft.de>.

* src/main.c (main): Ignore SIGPIPE.
* src/posixos.c (osync_clear): Fix a memory leak.
src/main.c
src/posixos.c