Before this patch, the stream engine terminated itself whenever it had detected an IO error. If this happened when sending a message, the engine lost all in-flight messages, messages waiting to be decoded, and the last decoded message that had not been accepted, if there was one. The new behaviour is to terminate the engine only after the input error has been detected and the last decoded message has been accepted.
…y darkskiez on irc
According to the libc documentation S_IWRITE is only for BSD compatibility: http://www.gnu.org/s/hello/manual/libc/Permission-Bits.html This patch adds a check to determine the target platform and use correct file access definition in each case: - For Linux and Android S_IWUSR is used. - For other platforms S_IWRITE is used. Signed-off-by: Javier Lopez <email@example.com>