Skip to content

Commit

Permalink
Allow qubes-dom0-update concurrency on Audio Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Sep 12, 2024
1 parent 3f0afb7 commit a8ef30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom0-updates/qubes-dom0-update
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ LOCKFILE="/var/run/qubes/qubes-dom0-update.lock"
exec 9>"${LOCKFILE}"
[ "$ID" == 0 ] && chgrp qubes "${LOCKFILE}" && chmod g+w "${LOCKFILE}"
flock -n 9
if [[ ${?} -ne 0 ]]; then
if [[ ${?} -ne 0 ]] && [[ ! $SWITCHING_AUDIO_IN_PROGRESS ]]; then
echo "Another instance of qubes-dom0-update is already running!"
exit 1
fi
Expand Down

0 comments on commit a8ef30f

Please sign in to comment.