X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftarget-signal.lisp;h=5a43e1761afcf93e628669a39f4e25776813fb5d;hb=15d6e7c9a2c3234f95dfe278046fa2fee1b0c007;hp=a920f15da921d9e9314d1b4533154cd876db9753;hpb=c2bce3b9eb9f51fb0657af3c9023fff86ba3a51f;p=sbcl.git diff --git a/src/code/target-signal.lisp b/src/code/target-signal.lisp index a920f15..5a43e17 100644 --- a/src/code/target-signal.lisp +++ b/src/code/target-signal.lisp @@ -17,26 +17,20 @@ ;;;; system calls that deal with signals +;;; Send the signal SIGNAL to the process with process id PID. SIGNAL +;;; should be a valid signal number #!-sb-fluid (declaim (inline real-unix-kill)) -(sb!alien:define-alien-routine ("kill" real-unix-kill) sb!alien:int +(sb!alien:define-alien-routine ("kill" unix-kill) sb!alien:int (pid sb!alien:int) (signal sb!alien:int)) -;;; Send the signal SIGNAL to the process with process id PID. SIGNAL -;;; should be a valid signal number -(defun unix-kill (pid signal) - (real-unix-kill pid signal)) - +;;; Send the signal SIGNAL to the all the process in process group +;;; PGRP. SIGNAL should be a valid signal number #!-sb-fluid (declaim (inline real-unix-killpg)) -(sb!alien:define-alien-routine ("killpg" real-unix-killpg) sb!alien:int +(sb!alien:define-alien-routine ("killpg" unix-killpg) sb!alien:int (pgrp sb!alien:int) (signal sb!alien:int)) -;;; Send the signal SIGNAL to the all the process in process group -;;; PGRP. SIGNAL should be a valid signal number -(defun unix-killpg (pgrp signal) - (real-unix-killpg pgrp signal)) - ;;; Reset the current set of masked signals (those being blocked from ;;; delivery). ;;; @@ -61,6 +55,7 @@ (defun enable-interrupt (signal handler) (declare (type (or function fixnum (member :default :ignore)) handler)) + (/show0 "enable-interrupt") (without-gcing (let ((result (install-handler signal (case handler @@ -97,7 +92,7 @@ `(defun ,name (signal info context) (declare (ignore signal info)) (declare (type system-area-pointer context)) - (/show "in Lisp-level signal handler" (sap-int context)) + (/show "in Lisp-level signal handler" ,(symbol-name name) (sap-int context)) (,function ,(concatenate 'simple-string what " at #X~X") (with-alien ((context (* os-context-t) context)) (sap-int (sb!vm:context-pc context)))))))