From b6eea6ed4549f9e7a89aab6306a51213b2bf36c9 Mon Sep 17 00:00:00 2001 From: John Andersen Date: Thu, 28 Jul 2022 14:06:21 -0700 Subject: [PATCH] util: subprocess: run command events: Do not return after yield of stdout/err Closes: #1409 Signed-off-by: John Andersen --- dffml/util/subprocess.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dffml/util/subprocess.py b/dffml/util/subprocess.py index 2538c16b4e..09f17eaa53 100644 --- a/dffml/util/subprocess.py +++ b/dffml/util/subprocess.py @@ -93,7 +93,6 @@ async def run_command_events( yield Subprocess.STDOUT, b"".join( output[Subprocess.STDOUT_READLINE] ) - return # If caller wants event if events and event in events: yield event, result