Remy Maucherat
committed
on 23 Feb 17
BZ1426264: Fix weird error handling in blockingWrite, also remove the immediate close for other errors, and always return a negative value.