[Ecls-list] Signaling a more specific condition on signals.

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Fri Aug 20 21:48:00 UTC 2010


On Fri, Aug 20, 2010 at 10:23 PM, Pascal J. Bourguignon <
pjb at informatimago.com> wrote:

> When a unix signal is received, ecl cl:signals a simple-error with:
>
> unixint.d:370:                FEerror("Serious signal ~D caught.", 1,
> signal_code);
>
> In this it would be better if a specific condition was signaled
> instead, so that applications could more easily handle the signal.


It's in CVS now. Slight change of names. Please report if it works for you!

(define-condition ext:unix-signal-received ()
  ((code :type fixnum
         :initform 0
         :initarg :signal-code
         :accessor ext:unix-signal-received-code))
  (:report (lambda (condition stream)
             (format stream "Serious signal ~D caught."
                     (ext:unix-signal-received-code condition)))))


Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100820/84c4bd05/attachment.html>


More information about the ecl-devel mailing list