[vlc-commits] Old RC: use vlc_socket()
Rémi Denis-Courmont
git at videolan.org
Mon May 14 16:35:18 CEST 2012
vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 14 17:28:02 2012 +0300| [d82f47cca0ab74769c7c62b7ac15358f67c8e669] | committer: Rémi Denis-Courmont
Old RC: use vlc_socket()
This avoids leaking the Unix socket to child processes.
(cherry picked from commit cb11b7841319bd9017b76229291223c49b40d219)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d82f47cca0ab74769c7c62b7ac15358f67c8e669
---
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 92d8ae4..04dc01e 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