[dvblast-devel] unlink comm socket before binding
Christophe Massiot
git at videolan.org
Wed Oct 23 21:27:10 CEST 2013
dvblast | branch: master | Christophe Massiot <massiot at via.ecp.fr> | Wed Oct 23 21:24:57 2013 +0200| [7a77f6cbf5748089c738059bdc01655228c0938e] | committer: Christophe Massiot
unlink comm socket before binding
> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=7a77f6cbf5748089c738059bdc01655228c0938e
---
comm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/comm.c b/comm.c
index 7050a05..bfd97dc 100644
--- a/comm.c
+++ b/comm.c
@@ -44,6 +44,8 @@ void comm_Open( void )
int i_size = COMM_MAX_MSG_CHUNK;
struct sockaddr_un sun_server;
+ unlink( psz_srv_socket );
+
if ( (i_comm_fd = socket( AF_UNIX, SOCK_DGRAM, 0 )) == -1 )
{
msg_Err( NULL, "cannot create comm socket (%s)", strerror(errno) );
More information about the dvblast-devel
mailing list