[m-rev.] For review: Re-throw unhandled signals.

Paul Bone pbone at csse.unimelb.edu.au
Sun May 23 14:56:18 AEST 2010


On Thu, May 13, 2010 at 03:57:58PM +1000, Paul Bone wrote:
> 
> Re-throw unhandled signals.
> 
> The Mercury runtime uses signal handlers to implement redzones and to provide
> extra information in the case of a segmentation violation.  However this
> prevents Mercury programs from dumping core.  It can also prevent the parent
> process from knowing that the program was killed by a signal rather than exited
> with exit status 1.  This change re-throws signals that cannot be handled so
> that the program can dump core and does this compatibly with the existing
> signal handlers.
> 
> runtime/mercury_memory_handlers.c:
>     Use MR_reset_signal() and raise() to re-throw signals that we can't handle.
> 
> runtime/mercury_signal.h:
> runtime/mercury_signal.c:
>     Create MR_reset_signal() that resets the handler for a signal back to the
>     default (SIG_DFL).
> 

This has been commited along with Julien's suggestions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20100523/691b4325/attachment.sig>


More information about the reviews mailing list