What is Nostr?
Ludovic Courtès /
npub15te…zz7y
2023-09-06 08:33:30
in reply to nevent1q…4z9p

Ludovic Courtès on Nostr: npub1zglpd…crqd7 ‘with-pipes’ won’t close pipes in cases of a non-local exit ...

npub1zglpd69ltamxe7nnm6rdfleu8amgg3sn24n8rvdey6avckmeax8qvcrqd7 (npub1zgl…rqd7) ‘with-pipes’ won’t close pipes in cases of a non-local exit of ‘proc’.

To protect against that, you can wrap the call to ‘proc’ in ‘with-exception-handler’ or similar. (It’s tempting to use ‘dynamic-wind’ but then that would prevent ‘proc’ or its callees from capturing a delimited continuation that spans the ‘with-pipes’ call.)
Author Public Key
npub15teuvnz55q44z0xlq33dh02x7das02u79dxpah6fmaj9c5g70nwsqdzz7y