Skip to content

Commit

Permalink
Merge pull request #414 from backend-developers-ltd/cve-check-cleanup
Browse files Browse the repository at this point in the history
Kill cve check process on timeout
  • Loading branch information
emnoor-reef authored Feb 13, 2025
2 parents cebd430 + de7e5df commit 13ce663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,7 @@ async def is_nvidia_toolkit_version_safe_cve_2024_0132(self):
process.communicate(), CVE_2024_0132_TIMEOUT_SECONDS
)
except TimeoutError:
process.kill()
logger.error("NVIDIA Container Toolkit Version for CVE-2024-0132 check timed out")
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ async def is_nvidia_toolkit_version_safe_cve_2024_0132(self):
try:
stdout, stderr = await asyncio.wait_for(process.communicate(), 5)
except TimeoutError:
process.kill()
is_toolkit_installed = False

if is_toolkit_installed is None and process.returncode != 0:
Expand Down

0 comments on commit 13ce663

Please sign in to comment.