delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/29/16:26:53

Date: Mon, 29 Aug 1994 19:24:56 +0200
Alternate-Recipient: Allowed
From: HANS ELLENBERGER <ELE AT CLIENTS DOT SWITCH DOT ch>
To: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: bugs in exec.c et al

After using malloc with chunks > 4096 bytes, the free ram
reported by _go32_dpmi_remaining_physical_memory() is not
decreased accordingly.

Using calloc instead of malloc or writing to each page of the
newly allocated space fixes that problem.

After returning from a call to spawnlp, in both cases the free
ram reported does no longer reflect allocations done before.

exec.c also seems to have some memory leaks.

When an application exhausts all file handles, then spawnlp (of
stubbed programs) will no longer work and other strange things
happen.

F_OPENMAX in stdio.h which is #defined 256 will (of course) only
handle the number of files specified by FILES= in config.sys.

Answers please to ele AT clients DOT switch DOT ch

Thanks and regards!



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019