]> git.eshelyaron.com Git - emacs.git/commitdiff
* process.c (read_and_dispose_of_process_output): Fix typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Jul 2014 17:13:32 +0000 (10:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Jul 2014 17:13:32 +0000 (10:13 -0700)
in previous patch: we want nonnegative fds, not nonzero fds.

src/ChangeLog
src/process.c

index 7a29f8d803bd39e8b3d399ca9dcceac3ed1a2247..4c4ca3a5e00d5e80de92e496c1e6c3884a28a697 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * process.c (read_and_dispose_of_process_output): Fix typo
+       in previous patch: we want nonnegative fds, not nonzero fds.
+
 2014-07-08  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * chartab.c (char_table_translate): Move to...
index d1b14533c9952d6187cc50103752eecc76fb656f..4449493a2b6e4e446bf77162a478f96f01de43a7 100644 (file)
@@ -5134,7 +5134,7 @@ read_and_dispose_of_process_output (struct Lisp_Process *p, char *chars,
         proc_encode_coding_system[p->outfd] surely points to a
         valid memory because p->outfd will be changed once EOF is
         sent to the process.  */
-      if (NILP (p->encode_coding_system) && p->outfd
+      if (NILP (p->encode_coding_system) && p->outfd >= 0
          && proc_encode_coding_system[p->outfd])
        {
          pset_encode_coding_system