Log error on fork/exec failure

This commit is contained in:
Simon Ser 2021-06-09 17:39:45 +02:00
parent df6b48776e
commit 7c3dff8d57

View file

@ -3020,6 +3020,9 @@ spawn_client( char **argv )
pid_t pid = fork();
if ( pid < 0 )
perror( "fork failed" );
// Are we in the child?
if ( pid == 0 )
{
@ -3045,6 +3048,8 @@ spawn_client( char **argv )
unsetenv( "ENABLE_VKBASALT" );
execvp( argv[ 0 ], argv );
perror( "execvp failed" );
}
std::thread waitThread([](){