X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftarget-signal.lisp;h=c492023c0a567247ec6fddca6793830a97178cd1;hb=b5e062b2e6fd068d9a870bf8888d96126887852c;hp=a920f15da921d9e9314d1b4533154cd876db9753;hpb=c2bce3b9eb9f51fb0657af3c9023fff86ba3a51f;p=sbcl.git diff --git a/src/code/target-signal.lisp b/src/code/target-signal.lisp index a920f15..c492023 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). ;;; @@ -97,7 +91,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)))))))