See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00483.html
2011-04-13 Paul Eggert <eggert@cs.ucla.edu>
+ * process.c (send_process): Count partial writes as successes.
+ See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00483.html
+
emacs_write: Return size_t, not ssize_t, to avoid overflow issues.
* gnutls.c, gnutls.h (emacs_gnutls_write): Return size_t, not ssize_t.
* sysdep.c, lisp.h (emacs_write): Likewise.
else
#endif
written = emacs_write (outfd, buf, this);
- rv = (written == this ? 0 : -1);
+ rv = (written ? 0 : -1);
#ifdef ADAPTIVE_READ_BUFFERING
if (p->read_output_delay > 0
&& p->adaptive_read_buffering == 1)