~cjwatson/libpipeline/master

Viewing all changes in revision 273.

  • Committer: Colin Watson
  • Date: 2021-11-07 22:17:39 UTC
  • Revision ID: git-v1:df4c35352ad78127307dbb3587eb8c4b0a3c72ea
Simplify conditional SIGPIPE handling

* lib/pipeline.c (IS_SIGPIPE): New macro.
(pipecmd_exec, pipeline_wait_all): Use IS_SIGPIPE, thereby avoiding
needing to put parts of an if/else chain inside #ifdef.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: