diff options
author | Sean McGovern <[email protected]> | 2016-06-30 13:10:55 -0400 |
---|---|---|
committer | Sean McGovern <[email protected]> | 2016-07-01 14:07:46 -0400 |
commit | ba88a841847d19a5e8819d81a83dbde78b72d045 (patch) | |
tree | bd8365b641e16dfda7483566d51825ce77751d48 /libhb/hb.c | |
parent | b7645e7842703d52c44feaa85cfb3c490e09c8dc (diff) |
libhb: don't ignore the return result from pipe()
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index d84fece27..db0ef523a 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -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]; |