[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-process-filter-multibyte and etc.
From: |
Kenichi Handa |
Subject: |
Re: set-process-filter-multibyte and etc. |
Date: |
Thu, 20 Feb 2003 10:56:04 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Tak Ota <address@hidden> writes:
> setup_process_coding_systems should check the validity of inch and
> outch since they can be (-1) when the buffer is killed and
> setup_process_coding_systems is called downstream of exec_sentinel.
Thank you for the bug report. I've just installed the
attached change. Does it fix the problem?
---
Ken'ichi HANDA
address@hidden
2003-02-20 Kenichi Handa <address@hidden>
* process.c (setup_process_coding_systems): If the process's
in/out descriptor is -1, do nothing.
Index: process.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/process.c,v
retrieving revision 1.399
retrieving revision 1.400
diff -u -c -r1.399 -r1.400
cvs server: conflicting specifications of output style
*** process.c 10 Feb 2003 13:51:43 -0000 1.399
--- process.c 20 Feb 2003 01:54:09 -0000 1.400
***************
*** 598,603 ****
--- 598,606 ----
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));