bug#40206: guile should delete unix listen socket when quit

Arun Isaac <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Suppose I start guile to listen on a unix socket /tmp/guile like so:

$ guile --listen=/tmp/guile

When I quit guile, the socket file still remains. The next time I start
guile to listen on /tmp/guile, guile errors out with the following
error. It would be better if guile deleted the socket file on quitting.

--8<---------------cut here---------------start------------->8---
Backtrace:
           5 (apply-smob/1 #<catch-closure 7f1da4749340>)
In ice-9/boot-9.scm:
    705:2  4 (call-with-prompt ("prompt") #<procedure 7f1da2eaf4c0 …> …)
In ice-9/eval.scm:
    619:8  3 (_ #(#(#<directory (guile-user) 7f1da43d9140>)))
    155:9  2 (_ #(#(#<directory (guile-user) 7f1da43d9140>)))
In system/repl/server.scm:
     86:4  1 (make-unix-domain-server-socket #:path _)
In unknown file:
           0 (bind #<input-output: socket 9> 1 "/tmp/guile")

ERROR: In procedure bind:
In procedure bind: Address already in use
--8<---------------cut here---------------end--------------->8---
signature.asc (application/pgp-signature, 487 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl55wtUACgkQLiXui2GA
K7NUcgf9GOAFj3SUtNBB3YD4gN0ZboqhQcJQhC0zZ8KvkNBO55VSinXMrGCDbyrN
Z+SVaE7fFSzW+DBdL4S5bmvsAiyXezWBfCLzYsNKFZmB07AaaSzAY76Bk/HWdBUB
1UHCqZCXLBJZCLoFlJkPzDJEgsCYtiIY0nPNSdf3/q14WtH7ChQJBygxbIH6N85n
ivKPlbtcutur70yYmM3/utXoZNroDs4M5gw/pHDFx8FpO9HfPt2YGotFsxoUdVxX
/WnvXqGihAB4b3XqpNvqyFDOUol57yHPTrZM/Rk7QF+YfweHrFnKFvSqjawG7fnm
75xQLwCZJ8BmC0JpbYvS9ZfhYardYw==
=LRq3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.