[dvblast-devel] [PATCH 16/20] dvblast: Remove comm socket on exit.

Georgi Chorbadzhiyski gf at unixsol.org
Mon Sep 5 09:52:51 CEST 2011


---
 dvblast.c |    4 ++++
 dvblast.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dvblast.c b/dvblast.c
index d815dfd..65a0e1c 100644
--- a/dvblast.c
+++ b/dvblast.c
@@ -978,5 +978,9 @@ int main( int i_argc, char **pp_argv )
 
     if ( b_enable_syslog )
         msg_Disconnect();
+
+    if ( psz_srv_socket && i_comm_fd > -1 )
+        unlink( psz_srv_socket );
+
     return EXIT_SUCCESS;
 }
diff --git a/dvblast.h b/dvblast.h
index 2547ee9..6f61a95 100644
--- a/dvblast.h
+++ b/dvblast.h
@@ -152,6 +152,7 @@ extern output_t **pp_outputs;
 extern int i_nb_outputs;
 extern output_t output_dup;
 extern char *psz_srv_socket;
+extern int i_comm_fd;
 extern int i_adapter;
 extern int i_fenum;
 extern int i_frequency;
-- 
1.7.5.1



More information about the dvblast-devel mailing list