From: pavenis AT lanet DOT lv To: Martin Stromberg , djgpp-workers AT delorie DOT com, Bart DOT Oldeman AT bristol DOT ac DOT uk (Bart Oldeman) Date: Fri, 17 Aug 2001 15:35:57 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: _open.c commit? (was Re: Selector Exhaustion) Message-ID: <3B7D39DD.20454.FB929@localhost> In-reply-to: <200108171054.MAA24446@merope.lu.erisoft.se> References: <3B7D0F21 DOT 25494 DOT 2689A4 AT localhost> from "pavenis AT lanet DOT lv" at Aug 17, 2001 12:33:37 PM X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 17 Aug 2001, at 12:54, Martin Stromberg wrote: > Andris said: > > > However, I'd like to see that patch changed so that plain DOS systems > > > aren't affected at all. Why slow down systems which don't need that? > > > We already have the _windows_major variable that can be used to easily > > > test for whether we are on Windows, and _get_dos_version(1) can be > > > used for NT/W2K/XP. > > > > Ok. But I would not like to rely only on Windows presence. One can > > try to run DJGPP applications under DOSEMU under Linux and in this > > case I have seen descriptors leak (as far as I remeber) at least with > > some versions. We may also have bad DPMI providers for DOS which > > leaks descriptors. > > > > So I would prefer to look whether we have good DPMI server. > > Yes. But I imagine that dosemu isn't one of the non-good. Or if it > is, that the dosemu team wants to know about it. > > And if some versions do leak but later versions have been corrected, I > think you're supposed to upgrade instead of punishing those that do > use correct versions. > Verified that I have LDT descriptors leaks under dosemu-1.0.2 (latest stable version). Patch for workarounding them works Ok Andris