go-transcode icon indicating copy to clipboard operation
go-transcode copied to clipboard

HLS transcoding leaving defunct processes

Open m1k1o opened this issue 3 years ago • 3 comments

After killing ffmpeg transcoding profile, defuct (zombie) processes can be seen.

This should be fixed by f004def49841e2d8b8381262b70a8b7c77cfce8e but it does not seem to be working correctly.

m1k1o avatar Sep 24 '21 08:09 m1k1o

Could be fixed by waiting for child to finish .Wait(). From: https://stackoverflow.com/a/29552044/1113204

m1k1o avatar Sep 24 '21 16:09 m1k1o

That actually didn't fix all cases. It still occurs on one of my servers. Maybe closing stdin could fix it.

m1k1o avatar Sep 27 '21 11:09 m1k1o

If using sh -c and it calls multiple processes, they are never killed. Although this is not directly issue of this implementation, it does not allow calling mutliple processes and piping them, only one.

m1k1o avatar Oct 30 '22 16:10 m1k1o