Date: Sun, 29 Sep 1996 10:10:52 +0200 (IST) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com Subject: `abort' in nested programs Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII If `abort' is called in a program that was spawned by another DJGPP program, it wedges the machine. That's because `abort' calls `_exit', and so bypasses the call to `__djgpp_exception_toggle' (which is installed with a call to `atexit'). After that, the first keypress crashes the system. I'm not sure about the best way to solve this. Would a call to `__djgpp_exception_toggle' inside `abort' be OK? It would be nice to call it inside `_exit', but that won't work since `exit' calls `_exit'. Is there a way to detect whether exceptions point to the handlers inside surrently executing program? Anyway, I think making `abort' crash the entire system is too much of ``aborting''.