]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ast_careful_fwrite to support EPIPE gracefully 24/4824/3
authorkkm <kkm@smartaction.com>
Wed, 18 Jan 2017 02:46:43 +0000 (18:46 -0800)
committerkkm <kkm@smartaction.com>
Fri, 27 Jan 2017 03:04:30 +0000 (19:04 -0800)
commit555e8cd2ba3d6e24ce678e7ebc0fb9a8895ead65
tree495fdc6a76a3448a1632b9a3a6f865876c0cd5a6
parent3410000948f406a2e4bba33842345c40eb9bee20
ast_careful_fwrite to support EPIPE gracefully

When a reading end of the network socket is closed by an AMI manager,
the EPIPE is signaled when writing to our end, resulting in the
spurious log error message

  ast_careful_fwrite: fwrite() returned error: Broken pipe

Previously EPIPE was handled in ast_carefulwrite() a few lines above,
but not in this function.

ASTERISK-26753

Change-Id: I6a67335cd6526608bb9b78f796c626b1677664b8
main/utils.c