Mail Archives: djgpp/1997/06/10/04:28:19
On Tue, 10 Jun 1997, Orlando Andico wrote:
> The execXX() functions and spawnXX() functions have versions in which
> you're supposed to pass a pointer to the environment you're giving the
> child. Perhaps DJGPP programs set some environment variable (probably TERM
> or something) that normal DOS programs don't. getenv() returns NULL if no
> variable found, but A LOT of code looks like this:
>
> strcpy (term_var, getenv ("TERM"));
>
> which _would_ cause a SIGSEGV if TERM was not defined.
This is a possibility, but you need to actually locate such a code
fragment to explain a crash. Emacs doesn't have such fragment anywhere
(yes, I've looked).
This also doesn't explain at all why Emacs only crashes when exactly 22
environment variables are defined.
- Raw text -