]> granicus.if.org Git - handbrake/commitdiff
libhb: don't ignore the return result from pipe()
authorSean McGovern <gseanmcg@gmail.com>
Thu, 30 Jun 2016 17:10:55 +0000 (13:10 -0400)
committerSean McGovern <gseanmcg@gmail.com>
Fri, 1 Jul 2016 18:07:46 +0000 (14:07 -0400)
libhb/hb.c

index d84fece27d7e3d814d1f03a9c33b406bae8d34f6..db0ef523ab0b66dc469f9c0fc83cc4c655722251 100644 (file)
@@ -1938,7 +1938,8 @@ static void thread_func( void * _h )
 static void redirect_thread_func(void * _data)
 {
     int pfd[2];
-    pipe(pfd);
+    if (pipe(pfd))
+       return;
 #if defined( SYS_MINGW )
     // dup2 doesn't work on windows for some stupid reason
     stderr->_file = pfd[1];