Commit cb11b784 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Old RC: use vlc_socket()

This avoids leaking the Unix socket to child processes.
parent 619b980e
...@@ -240,7 +240,7 @@ static int Activate( vlc_object_t *p_this ) ...@@ -240,7 +240,7 @@ static int Activate( vlc_object_t *p_this )
msg_Dbg( p_intf, "trying UNIX socket" ); 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" ); msg_Warn( p_intf, "can't open socket: %m" );
free( psz_unix_path ); free( psz_unix_path );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment