Fix some bugs in non blocking pipe writing
Fix some bugs in non blocking pipe writing

jkonecny12/kakoune,mawww/kakoune,lenormf/kakoune,alexherbo2/kakoune,jkonecny12/kakoune,mawww/kakoune,mawww/kakoune,danr/kakoune,casimir/kakoune,alexherbo2/kakoune,danr/kakoune,lenormf/kakoune,Somasis/kakoune,casimir/kakoune,occivink/kakoune,danr/kakoune,occivink/kakoune,ekie/kakoune,ekie/kakoune,danr/kakoune,jjthrash/kakoune,occivink/kakoune,Somasis/kakoune,alexherbo2/kakoune,jkonecny12/kakoune,jjthrash/kakoune,ekie/kakoune,jjthrash/kakoune,alexherbo2/kakoune,mawww/kakoune,jkonecny12/kakoune,occivink/kakoune,ekie/kakoune,Somasis/kakoune,lenormf/kakoune,casimir/kakoune,Somasis/kakoune,lenormf/kakoune,casimir/kakoune,jjthrash/kakoune