(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 1358bc7..335e180 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 fbe3ae6..77c9e85 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));