Commit bbf30bc
committed
Hold wk_lock for entire worker session, not just step commands
The previous fix only held the lock during step commands, but continue
between breakpoints had the same ping-pong problem — another worker
could grab the lock before the current one hit its next breakpoint.
Now the wk_lock is never released in leave_subsession. Each worker
keeps exclusive debugger access for its entire lifetime. Other workers
queue up and get their turn when the current one exits. The kernel
releases flock automatically on process exit.1 parent 5481079 commit bbf30bc
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
| |||
0 commit comments