0.9.18.7: Win32 RUN-PROGRAM :WAIT T tweak
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 26 Oct 2006 10:29:47 +0000 (10:29 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 26 Oct 2006 10:29:47 +0000 (10:29 +0000)
 * Only -1 as result means the spawn failed: other negative
   return values are error codes.

NEWS
src/code/run-program.lisp
version.lisp-expr

diff --git a/NEWS b/NEWS
index 9b56030..03be969 100644 (file)
--- 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),
index 88982f8..7187877 100644 (file)
@@ -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
index 0209443..34aa04c 100644 (file)
@@ -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"