fix: sync-music: use unwind-protect in with-ignore-stderr
This commit is contained in:
parent
c9779f83cf
commit
cea9a46872
|
@ -20,10 +20,9 @@ Only works on Unix systems with a /dev/fd/ filesystem."
|
||||||
`(progn
|
`(progn
|
||||||
(finish-output *error-output*)
|
(finish-output *error-output*)
|
||||||
(let ((,old-stderr (dup +stderr-fileno+)))
|
(let ((,old-stderr (dup +stderr-fileno+)))
|
||||||
(prog1
|
(freopen "/dev/null" "w" +stderr+)
|
||||||
(progn
|
(unwind-protect
|
||||||
(freopen "/dev/null" "w" +stderr+)
|
(progn ,@body)
|
||||||
,@body)
|
|
||||||
(freopen (format nil "/dev/fd/~D" ,old-stderr) "a" +stderr+)))))
|
(freopen (format nil "/dev/fd/~D" ,old-stderr) "a" +stderr+)))))
|
||||||
#-unix
|
#-unix
|
||||||
`(progn ,@body))
|
`(progn ,@body))
|
||||||
|
|
Loading…
Reference in a new issue