Skip to content

Commit

Permalink
Allow qubes-dom0-update concurrency on Audio Switch
Browse files Browse the repository at this point in the history
fixes: QubesOS/qubes-issues#6345
(cherry picked from commit a8ef30f)
  • Loading branch information
alimirjamali authored and marmarek committed Nov 5, 2024
1 parent ef23fa4 commit 781252b
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 @@ -207,7 +207,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 781252b

Please sign in to comment.