Action/Sendmail handle and log almost all possible errors in interaction with 'sendmailpipe'

subj, changes inlined

Best regards, Ruslan.

3.4-sendmail_action_error_handling.patch (1.71 KB)

subj, changes inlined


Best regards, Ruslan.

changes:

  • handle SIGPIPE, could happen if sendmail closes pipe before
    we output all message
  • handle SIGCHLD with default handler to get exit status from sendmail
  • handle errors in ‘close’, system errors or sendmail exit with error
  • only send warn on the error exit status

Ruslan,

Please apply to 3.4.

Jesse