moonbridge
diff reference.txt @ 118:118e320a7812
Delete local socket in filesystem before and after listening
author | jbe |
---|---|
date | Fri Apr 10 13:08:34 2015 +0200 (2015-04-10) |
parents | 0eba766e9be2 |
children | 9ca22af4d4b1 |
line diff
1.1 --- a/reference.txt Fri Apr 10 02:40:43 2015 +0200 1.2 +++ b/reference.txt Fri Apr 10 13:08:34 2015 +0200 1.3 @@ -264,11 +264,8 @@ 1.4 ### moonbridge_io.locallisten(path) 1.5 1.6 Attempts to create a local socket (also known as Unix Domain Socket) to accept 1.7 -incoming connections. 1.8 - 1.9 -Note: The caller is responsible for unlinking the socket in the filesystem 1.10 -before opening or after closing the listening socket. If a file (or socket) 1.11 -already exists at the given path, this function returns with an I/O error. 1.12 +incoming connections. If the file does already exist and is a socket, then it 1.13 +is deleted automatically before being re-created. 1.14 1.15 In case of an I/O error, nil (as first return value) plus an error message (as 1.16 second return value) may be returned.On success, a listener object is returned