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

Fix error handling

parent c3131c09
...@@ -148,8 +148,8 @@ static void Execute( intf_thread_t *p_this, const char *const *ppsz_args ) ...@@ -148,8 +148,8 @@ static void Execute( intf_thread_t *p_this, const char *const *ppsz_args )
pthread_sigmask (SIG_SETMASK, &set, NULL); pthread_sigmask (SIG_SETMASK, &set, NULL);
/* We don't want output */ /* We don't want output */
freopen( "/dev/null", "w", stdout ); if( ( freopen( "/dev/null", "w", stdout ) != NULL )
freopen( "/dev/null", "w", stderr ); && ( freopen( "/dev/null", "w", stderr ) != NULL ) )
execv( ppsz_args[0] , (char *const *)ppsz_args ); execv( ppsz_args[0] , (char *const *)ppsz_args );
/* If the file we want to execute doesn't exist we exit() */ /* If the file we want to execute doesn't exist we exit() */
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );
......
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