]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ast_careful_fwrite to support EPIPE gracefully 27/4827/2
authorkkm <kkm@smartaction.com>
Wed, 18 Jan 2017 02:46:43 +0000 (18:46 -0800)
committerKirill Katsnelson <kkm@smartaction.com>
Fri, 27 Jan 2017 03:08:54 +0000 (21:08 -0600)
commit7eaaa8bedc0ba95bfe618c8e26a66467d60439a0
treedb6d6b63d963f3877a63590adf67bdcb31944c3c
parent75ef430f2f2814f0c9f8029a0a7768e1a3a25ce7
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