Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    40dc3e0d
    When constructing a pipe to child stdin on Posix, ignore SIGPIPE. · 40dc3e0d
    Nat Goodspeed authored
    We can't count on every child process reading everything we try to write to
    it. And if the child terminates with WritePipe data still pending, unless we
    explicitly suppress it, Posix will hit us with SIGPIPE. That would terminate
    the calling process, boom. "Ignoring" it means APR gets the correct errno,
    passes it back to us, we log it, etc.
    40dc3e0d
    History
    When constructing a pipe to child stdin on Posix, ignore SIGPIPE.
    Nat Goodspeed authored
    We can't count on every child process reading everything we try to write to
    it. And if the child terminates with WritePipe data still pending, unless we
    explicitly suppress it, Posix will hit us with SIGPIPE. That would terminate
    the calling process, boom. "Ignoring" it means APR gets the correct errno,
    passes it back to us, we log it, etc.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.