OSDN Git Service

[Signal] Re-raise SIGPIPE if the handler is uninstalled
authorVedant Kumar <vsk@apple.com>
Fri, 8 Jan 2021 19:12:08 +0000 (11:12 -0800)
committerVedant Kumar <vsk@apple.com>
Fri, 8 Jan 2021 19:13:43 +0000 (11:13 -0800)
commitbf401256edd00e921a5d3a0bf4cf6ee66ae51cd6
treec4659692c811d52d725b81281d7db5f7a861d019
parentec13f6c3e56952c94909a36a590c679a6a57a046
[Signal] Re-raise SIGPIPE if the handler is uninstalled

Instead of falling through to RunSignalHandlers after the SIGPIPE
handler is uninstalled and we get a SIGPIPE, re-raise the signal, just
like we do for other IntSigs.

This was discussed and informally OK'd here:

https://reviews.llvm.org/rG9a3f892d018238dce5181e458905311db8e682f5#856804
llvm/lib/Support/Unix/Signals.inc