X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Frun-program.lisp;h=b397990415992f701a8932a371dfeaa3ad2f9955;hb=b1de52969f584c63d43fb35da4a8a6a4e0e619f0;hp=7658e80d75f1ceaded612ad1618c5da15afc5311;hpb=cea4896b2482b7b2b429c1631d774b4cfbc0efba;p=sbcl.git diff --git a/src/code/run-program.lisp b/src/code/run-program.lisp index 7658e80..b397990 100644 --- a/src/code/run-program.lisp +++ b/src/code/run-program.lisp @@ -19,10 +19,9 @@ (options sb-c-call:int) (rusage sb-c-call:int)) -(eval-when (:compile-toplevel :load-toplevel :execute) - (defconstant wait-wnohang #-svr4 1 #+svr4 #o100) - (defconstant wait-wuntraced #-svr4 2 #+svr4 4) - (defconstant wait-wstopped #-svr4 #o177 #+svr4 wait-wuntraced)) +(defconstant wait-wnohang #-svr4 1 #+svr4 #o100) +(defconstant wait-wuntraced #-svr4 2 #+svr4 4) +(defconstant wait-wstopped #-svr4 #o177 #+svr4 wait-wuntraced) (defun wait3 (&optional do-not-hang check-for-stopped) "Return any available status information on child process. " @@ -120,10 +119,10 @@ (process-pid proc)) (defun process-kill (proc signal &optional (whom :pid)) - "Hand SIGNAL to PROC. If whom is :pid, use the kill Unix system call. If - whom is :process-group, use the killpg Unix system call. If whom is - :pty-process-group deliver the signal to whichever process group is currently - in the foreground." + "Hand SIGNAL to PROC. If WHOM is :PID, use the kill Unix system call. If + WHOM is :PROCESS-GROUP, use the killpg Unix system call. If WHOM is + :PTY-PROCESS-GROUP deliver the signal to whichever process group is + currently in the foreground." (let ((pid (ecase whom ((:pid :process-group) (process-pid proc))