From 0fc68e2e91de480ddeab92aee23a17c142fb5b0d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 4 Dec 2015 16:38:24 -0500 Subject: [PATCH] delete lock when we are done with it --- src/zm_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_stream.cpp b/src/zm_stream.cpp index f50671338..c66638759 100644 --- a/src/zm_stream.cpp +++ b/src/zm_stream.cpp @@ -344,8 +344,8 @@ void StreamBase::closeComms() } if (lock_fd > 0) { - loc_sock_path[0] = '\0'; close(lock_fd); //close it rather than unlock it incase it got deleted. + unlink(sock_path_lock); } } }