Mail Archives: djgpp-workers/1996/09/29/04:13:38
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''.
- Raw text -