Skip to content

Commit

Permalink
* src/code/run-program.lisp (get-processes-status-changes): fix for :…
Browse files Browse the repository at this point in the history
…wait t on windows.
  • Loading branch information
akovalenko committed Nov 11, 2011
1 parent f2c954b commit e266d2a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/code/run-program.lisp
Expand Up @@ -353,14 +353,16 @@ status slot."
t)))
#+win32
(lambda (proc)
(multiple-value-bind (ok code)
(get-exit-code-process (process-pid proc))
(when (and (plusp ok) (/= code 259))
(setf (process-%status proc) :exited
(process-exit-code proc) code)
(when (process-status-hook proc)
(push proc exited))
t)))
(let ((pid (process-pid proc)))
(when pid
(multiple-value-bind (ok code)
(get-exit-code-process pid)
(when (and (plusp ok) (/= code 259))
(setf (process-%status proc) :exited
(process-exit-code proc) code)
(when (process-status-hook proc)
(push proc exited))
t)))))
*active-processes*)))
;; Can't call the hooks before all the processes have been deal
;; with, as calling a hook may cause re-entry to
Expand Down

0 comments on commit e266d2a

Please sign in to comment.