From 58bbdb4fa9101e08327b4bd33710bf1074b58d4f Mon Sep 17 00:00:00 2001 From: Nikodemus Siivola Date: Thu, 26 Oct 2006 10:29:47 +0000 Subject: [PATCH] 0.9.18.7: Win32 RUN-PROGRAM :WAIT T tweak * Only -1 as result means the spawn failed: other negative return values are error codes. --- NEWS | 2 ++ src/code/run-program.lisp | 2 +- version.lisp-expr | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 9b56030..03be969 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ changes in sbcl-0.9.19 (1.0.0?) relative to sbcl-0.9.18: ** floating point exceptions are now reported correctly. ** stack exhaustion detection works partially. ** more accurate GET-INTERNAL-REAL-TIME. + ** better RUN-PROGRAM behaviour in case of errors in the child + process. changes in sbcl-0.9.18 (1.0.beta?) relative to sbcl-0.9.17: * enhancement: SB-POSIX now supports cfsetispeed(3), cfsetospeed(3), diff --git a/src/code/run-program.lisp b/src/code/run-program.lisp index 88982f8..7187877 100644 --- a/src/code/run-program.lisp +++ b/src/code/run-program.lisp @@ -879,7 +879,7 @@ Common Lisp Users Manual for details about the PROCESS structure. (spawn pfile args-vec stdin stdout stderr (if wait 1 0))))) - (when (< handle 0) + (when (= handle -1) (error "Couldn't spawn program: ~A" (strerror))) (setf proc (if wait diff --git a/version.lisp-expr b/version.lisp-expr index 0209443..34aa04c 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.9.18.6" +"0.9.18.7" -- 1.7.10.4