Opened 3 years ago
Closed 3 years ago
Last modified 3 years ago
Startup command causes deadlock of Scheduler schedLock mutex
|Reported by:||Andy@…||Owned by:||gigem|
|Component:||MythTV - Scheduling||Version:||0.24|
I have a startupCommand script that reads the mythweb status web page to get some information.
The thread running mythweb attempts to grab the schedLock mutex in Scheduler::getAllPending, this is already being held by the thread running RunScheduler?() where the startup command is called.
The solution may be to release the schedLock mutex while calling myth_system(startupCommand)
Also this has happened when calling the shutdown script as well. I have got around the problem by removing the mythweb reads in the scripts.
Change History (5)
comment:1 Changed 3 years ago by gigem
- Status changed from new to assigned
comment:2 Changed 3 years ago by beirdo
comment:3 Changed 3 years ago by gigem
comment:4 Changed 3 years ago by gigem
- Milestone changed from unknown to 0.24.1
- Resolution set to Fixed
- Status changed from assigned to closed