go-transcode
go-transcode copied to clipboard
HLS transcoding leaving defunct processes
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.
Could be fixed by waiting for child to finish .Wait()
. From: https://stackoverflow.com/a/29552044/1113204
That actually didn't fix all cases. It still occurs on one of my servers. Maybe closing stdin could fix it.
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.