]> git.eshelyaron.com Git - emacs.git/commitdiff
(setup_process_coding_systems): If the process's
authorKenichi Handa <handa@m17n.org>
Thu, 20 Feb 2003 01:54:27 +0000 (01:54 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 20 Feb 2003 01:54:27 +0000 (01:54 +0000)
in/out descriptor is -1, do nothing.

src/ChangeLog
src/process.c

index 1358bc780a380cc8853241466f2bf0aead6d8fa8..335e180d4eeb55b56856a529e36f728ac457e8f7 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-20  Kenichi Handa  <handa@m17n.org>
+
+       * process.c (setup_process_coding_systems): If the process's
+       in/out descriptor is -1, do nothing.
+
 2003-02-19  Andreas Schwab  <schwab@suse.de>
 
        * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte): Add
index fbe3ae6932943a7a4fc86c0a4b4142dbcee948b2..77c9e857c04d32079376ae39137142f0505f4581 100644 (file)
@@ -598,6 +598,9 @@ setup_process_coding_systems (process)
   int inch = XINT (p->infd);
   int outch = XINT (p->outfd);
 
+  if (inch < 0 || outch < 0)
+    return;
+
   if (!proc_decode_coding_system[inch])
     proc_decode_coding_system[inch]
       = (struct coding_system *) xmalloc (sizeof (struct coding_system));