call-with-port does not use dynamic-wind to close the port.
This commit is contained in:
parent
b15c7063f9
commit
8423610f45
|
@ -1593,10 +1593,11 @@
|
|||
(define (call-with-port p proc)
|
||||
(if (port? p)
|
||||
(if (procedure? proc)
|
||||
(dynamic-wind
|
||||
void
|
||||
(call-with-values
|
||||
(lambda () (proc p))
|
||||
(lambda () (close-port p)))
|
||||
(lambda vals
|
||||
(close-port p)
|
||||
(apply values vals)))
|
||||
(die 'call-with-port "not a procedure" proc))
|
||||
(die 'call-with-port "not a port" p)))
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
1529
|
||||
1530
|
||||
|
|
Loading…
Reference in New Issue