From 2aa637ecc85b1aa1819a33957fa4996f5c7df743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 24 Jul 2023 21:30:41 +0800 Subject: [PATCH] Processing (Linux): don't return on POLLHUP In case child process finishs too fast --- src/common/processing_linux.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/common/processing_linux.c b/src/common/processing_linux.c index 9f5f0ca01..815ed1fc8 100644 --- a/src/common/processing_linux.c +++ b/src/common/processing_linux.c @@ -66,10 +66,6 @@ const char* ffProcessAppendOutput(FFstrbuf* buffer, char* const argv[], bool use kill(childPid, SIGTERM); return "poll(&pollfd, 1, timeout) error"; } - else if (pollfd.revents & POLLHUP) - { - return NULL; - } } char str[FF_PIPE_BUFSIZ];