[vlc-commits] Old RC: use vlc_socket()
Rémi Denis-Courmont
git at videolan.org
Mon May 14 16:28:52 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 14 17:28:02 2012 +0300| [cb11b7841319bd9017b76229291223c49b40d219] | committer: Rémi Denis-Courmont
Old RC: use vlc_socket()
This avoids leaking the Unix socket to child processes.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb11b7841319bd9017b76229291223c49b40d219
---
modules/control/rc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/control/rc.c b/modules/control/rc.c
index faf182d..655a127 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -240,7 +240,7 @@ static int Activate( vlc_object_t *p_this )
msg_Dbg( p_intf, "trying UNIX socket" );
- if( (i_socket = socket( PF_LOCAL, SOCK_STREAM, 0 ) ) < 0 )
+ if( (i_socket = vlc_socket( PF_LOCAL, SOCK_STREAM, 0, false ) ) < 0 )
{
msg_Warn( p_intf, "can't open socket: %m" );
free( psz_unix_path );
More information about the vlc-commits
mailing list