On Sat 29 Oct 2016 18:38, Christopher Allan Webber <cweb...@dustycloud.org> writes:
> In light of the recent security vulnerability on using localhost + port, > I've been using socket files for live hacking. Unfortunately, these > socket files stay around after closing guile, which means this can happen: > > $ guile --listen=/tmp/guile-socket > scheme@(guile-user)> ,q > $ guile --listen=/tmp/guile-socket > ERROR: In procedure bind: > ERROR: In procedure bind: Address already in use > > That's not very nice! I really don't like having to clean up these > files by hand.... Guile should do it for me. I agree :) Thanks for the patch! The patch goes in a direction that I'm a bit hesitant about though -- this command-line processing is getting a bit intense. Would it be possible to add a #:cleanup? argument to the spawn-server function instead? My only doubt would be whether all threads unwind when the program ends. (And if they don't, is that a bug? I am not sure but I would guess so; dunno.) Andy