Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quitting if the board is locked #76

Merged
merged 3 commits into from
May 31, 2024
Merged

Conversation

lumag
Copy link
Collaborator

@lumag lumag commented May 30, 2024

cdba-server blocks if the board is locked by another session. Loop around the flock(), sleeping in the middle. This allows CDBA to break early if user closes the terminal (by killing SSH or by Ctrl-A-Q sequence).

@lumag lumag requested a review from konradybcio May 30, 2024 22:02
@superna9999
Copy link
Member

Thx, it's what I tried but with this if multiple clients are waiting the next client to gain access is unpredictable, but I wasn't able to validate if flock() respects that order aswell...

@konradybcio konradybcio enabled auto-merge May 31, 2024 13:54
lumag added 3 commits May 31, 2024 16:57
Loop around the flock(), sleeping in the middle. This allows CDBA to
break early if user closes the terminal (by killing SSH or by Ctrl-A-Q
sequence).

Signed-off-by: Dmitry Baryshkov <[email protected]>
Include PID into syslog message to simplify identifying the CDBA
sessions.

Signed-off-by: Dmitry Baryshkov <[email protected]>
To identify closing of the session, log the message when CDBA quits.

Signed-off-by: Dmitry Baryshkov <[email protected]>
@konradybcio konradybcio merged commit 6113960 into linux-msm:master May 31, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants