Which seems like a sub optimal solution as I'm creating a thread to do nothing but block on a system(). And I need that kind of hacky sleep to make sure the system() executes before I try opening the socket.if( fork ) { system( "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe", "--rc-host", +"127.0.0.1:9999" ); exit; } sleep 1;
In reply to Re^2: Starting a process under Win32
by JStrom
in thread Starting a process under Win32
by JStrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |