From b3e1582af526d4d3a9d4d789e46a73070b1b6c4d Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 9 Oct 2019 17:53:27 -0700 Subject: [PATCH] ensure that ffmpeg processes are reaped to prevent zombies --- routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routes.go b/routes.go index 963f256..c50c9f2 100644 --- a/routes.go +++ b/routes.go @@ -205,6 +205,7 @@ func stream(lineup *lineup) gin.HandlerFunc { log.WithError(startErr).Errorln("Error starting ffmpeg") return } + defer run.Wait() go func() { scanner := bufio.NewScanner(stderr)