feat: крролик, по тщ 5 лаба

This commit is contained in:
Enterxx2
2026-11-10 12:38:09 +03:00
parent 1d8dfb7ea4
commit 595a959b96
65 changed files with 2692 additions and 216 deletions
+12
View File
@@ -0,0 +1,12 @@
import os
from pathlib import Path
def crash_once(point: str) -> None:
"""Точка защиты: оператор явно создаёт /tmp/lab5-crash-<point> внутри контейнера"""
marker = Path("/tmp") / ("lab5-crash-" + point)
try:
marker.unlink()
except FileNotFoundError:
return
os._exit(71)