X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Frun-program.lisp;h=7db3ff5427609972940aff81f27aaa6e5525a12e;hb=b8f63d9b4e978bec3bfc1f4fc471e5ed946781fd;hp=13acdf9c10fa4a9d57550255544fb493fd73ad01;hpb=3aba91516068375e01ffec0d19bf8cbe85feb828;p=sbcl.git diff --git a/src/code/run-program.lisp b/src/code/run-program.lisp index 13acdf9..7db3ff5 100644 --- a/src/code/run-program.lisp +++ b/src/code/run-program.lisp @@ -11,9 +11,6 @@ ;;;; files for more information. (in-package "SB-EXT") - -(file-comment - "$Header$") ;;;; Import wait3(2) from Unix. @@ -22,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. " @@ -123,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)) @@ -519,11 +515,9 @@ (process-wait proc)) proc)) -;;; COPY-DESCRIPTOR-TO-STREAM -- internal -;;; -;;; Installs a handler for any input that shows up on the file descriptor. -;;; The handler reads the data and writes it to the stream. -;;; +;;; Install a handler for any input that shows up on the file +;;; descriptor. The handler reads the data and writes it to the +;;; stream. (defun copy-descriptor-to-stream (descriptor stream cookie) (incf (car cookie)) (let ((string (make-string 256))