[Spread-users] Cleanup of socket file

Johannes Wienke jwienke at techfak.uni-bielefeld.de
Fri Feb 7 06:11:55 EST 2014


Hi everyone,

we are working in a multiple user environment on Linux and constantly
had problems with left-over socket files in /tmp from spread. Once one
user has used spread and stopped the daemon another user on the same
machine is unable to start spread again on the same port because the
/tmp/4803 or whatever port file is still existing with permissions
preventing a deletion.

Attached is a prototypical patch against the current 4.4 beta release
that adds a signal handler to remove this file. I haven't tested this on
Windows and other esoteric platforms so it probably needs some fixes for
those. But it would be nice if this functionality could end up in the
final release.

Cheers,
Johannes

-- 
Johannes Wienke, Researcher at CoR-Lab / CITEC, Bielefeld University
Address: Inspiration 1, D-33619 Bielefeld, Germany (Room 1.307)
Phone: +49 521 106-67277
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Clean-up-socket-file-on-signals.patch
Type: text/x-patch
Size: 1213 bytes
Desc: not available
Url : http://lists.spread.org/pipermail/spread-users/attachments/20140207/55b6004e/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
Url : http://lists.spread.org/pipermail/spread-users/attachments/20140207/55b6004e/attachment-0001.bin 


More information about the Spread-users mailing list