updated: log successful update swap (#22144)

old-commit-hash: da1aa27046
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 6e5f390994
commit 8b512c4b75
  1. 4
      selfdrive/updated.py

@ -347,6 +347,10 @@ def main():
if psutil.LINUX:
proc.ionice(psutil.IOPRIO_CLASS_BE, value=7)
# Check if we just performed an update
if Path(os.path.join(STAGING_ROOT, "old_openpilot")).is_dir():
cloudlog.event("update installed")
ov_lock_fd = open(LOCK_FILE, 'w')
try:
fcntl.flock(ov_lock_fd, fcntl.LOCK_EX | fcntl.LOCK_NB)

Loading…
Cancel
Save