Mail Archives: djgpp-workers/2003/03/16/16:01:52
Eli Zaretskii wrote:
>
> > Date: Thu, 13 Mar 2003 20:37:25 -0500
> > From: CBFalconer <cbfalconer AT yahoo DOT com>
> >
> > I have just noticed a C99 restriction against raising signals
> > within the library. nmalloc does raise SIGABRT in several cases,
> > where the memory arena has become fouled. This is concentrated in
> > the routine badcallabort(), which is called from various places.
> >
> > Is this worth worrying about
>
> I think you could simply call `abort()' instead of raising SIGABRT.
> One or two core library functions already do that.
>
> Would that be okay? If not, please tell why not.
No problem either way, except that it seems rather unfriendly. In
some cases it is possible to recover from the badcallabort to some
extent, and this can be done by the user trapping the SIGABRT and
rerturning. If it is not feasible the system presently calls
exit(EXIT_FAILURE) after the raise(SIGABRT); Se the actual code.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -