fix RUN-PROGRAM :WAIT T on Windows
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 20 Nov 2011 11:54:07 +0000 (13:54 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 20 Nov 2011 11:58:46 +0000 (13:58 +0200)
commit7e0235c6f230d9e07a710a33479697f174f393fb
treec304f8e145f97246bc33b79059442d947101774f
parentd94c1b4a8c534bde146823f56558faf37cd4c4d7
fix RUN-PROGRAM :WAIT T on Windows

  Recent change to report the errno from exec() broke things on Windows.

  There when :WAIT is true it is the C code that waits, and the subsequently
  returns the exit code of the process -- meaning our attempt to use 0 to
  indicate exec() failure makes every successfull execution on Windows look
  like an exec failure.

  Oops. Use -2 instead. MORE MAGIC.
src/code/run-program.lisp
src/runtime/run-program.c