b889069722
We may write just a part of the buffer and we don't check the result, so write_all is probably what we need here