Start using write() instead of _write().. and we promptly find a typo when dealing with real file descriptors.