mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Kill child processes when yt-dlc is killed (https://github.com/ytdl-org/youtube-dl/pull/26592)
Authored by: Unrud
This commit is contained in:
		| @@ -14,7 +14,8 @@ from ..utils import ( | ||||
|     PostProcessingError, | ||||
|     prepend_extension, | ||||
|     replace_extension, | ||||
|     shell_quote | ||||
|     shell_quote, | ||||
|     process_communicate_or_kill, | ||||
| ) | ||||
|  | ||||
|  | ||||
| @@ -128,7 +129,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): | ||||
|                 self._downloader.to_screen('[debug] AtomicParsley command line: %s' % shell_quote(cmd)) | ||||
|  | ||||
|             p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||||
|             stdout, stderr = p.communicate() | ||||
|             stdout, stderr = process_communicate_or_kill(p) | ||||
|  | ||||
|             if p.returncode != 0: | ||||
|                 msg = stderr.decode('utf-8', 'replace').strip() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan