[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NTEmacs dies of multiple processes
From: |
MIYOSHI Masanori |
Subject: |
NTEmacs dies of multiple processes |
Date: |
Wed, 09 Jul 2003 20:47:20 +0900 |
User-agent: |
Wanderlust/2.11.1 (Wonderwall) EMIKO/1.14.1 (Choanoflagellata) LIMIT/1.14.7 (Fujiidera) APEL/10.5 Emacs/21.1 (i386-msvc-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/2.00 Beta1 (NADESHIKO) |
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.3.50.1 (i386-msvc-nt5.1.2600)
of 2003-07-09 on MALEBOLGIA
configured using `configure --with-msvc (12.00)'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ja_JP.SJIS
locale-coding-system: japanese-shift-jis
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
On NTEmacs-21.3 and NTEmacs CVS HEAD, the following evaluation
causes a crash.
(while t (start-process "ping" nil "ping.exe"))
The following is a quickhack to avoid the crash.
--- ./w32.c.orig 2003-02-04 23:32:54.000000000 +0900
+++ ./w32.c 2003-07-09 20:16:30.000000000 +0900
@@ -3450,11 +3450,20 @@
if (rc == 0)
{
- flags = FILE_PIPE | FILE_READ | FILE_BINARY;
- fd_info[phandles[0]].flags = flags;
+ if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC)
+ {
+ _close (phandles[0]);
+ _close (phandles[1]);
+ rc = -1;
+ }
+ else
+ {
+ flags = FILE_PIPE | FILE_READ | FILE_BINARY;
+ fd_info[phandles[0]].flags = flags;
- flags = FILE_PIPE | FILE_WRITE | FILE_BINARY;
- fd_info[phandles[1]].flags = flags;
+ flags = FILE_PIPE | FILE_WRITE | FILE_BINARY;
+ fd_info[phandles[1]].flags = flags;
+ }
}
return rc;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- NTEmacs dies of multiple processes,
MIYOSHI Masanori <=