# HG changeset patch
# Parent d9a47033bbbaecf0977610656ab35d4326038993
Fix compilation for SYS:RUN-PROGRAM on JDK-6
diff -r d9a47033bbba -r a1801c61a3e9 src/org/armedbear/lisp/run-program.lisp
a
|
b
|
|
163 | 163 | process)))) |
164 | 164 | |
165 | 165 | (defconstant +inherit+ |
166 | | (java:jfield "java.lang.ProcessBuilder$Redirect" "INHERIT")) |
| 166 | (ignore-errors |
| 167 | (java:jfield "java.lang.ProcessBuilder$Redirect" "INHERIT"))) |
167 | 168 | |
168 | 169 | (defun coerce-to-file (value) |
169 | 170 | (java:jnew |
… |
… |
|
180 | 181 | |
181 | 182 | (defun setup-input-redirection (process-builder value if-does-not-exist) |
182 | 183 | (let ((redirect (if (eq value T) |
183 | | +inherit+ |
| 184 | (when +inherit+ +inherit+) |
184 | 185 | (let ((file (coerce-to-file value))) |
185 | 186 | (when value |
186 | 187 | (if (eq if-does-not-exist :create) |
… |
… |
|
195 | 196 | |
196 | 197 | (defun setup-output-redirection (process-builder value errorp if-does-exist) |
197 | 198 | (let ((redirect (if (eq value T) |
198 | | +inherit+ |
| 199 | (when +inherit+ +inherit+) |
199 | 200 | (let ((file (coerce-to-file value)) |
200 | 201 | appendp) |
201 | 202 | (when (and value (probe-file value)) |