-
-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Labels
A-bugZ-needs implementationNeeds an implementation, will accept PRsNeeds an implementation, will accept PRsos-mac
Description
Because the runloop thread signals that the runloop has started before CFRunLoopStart is called, it's possible for CFRunLoopStop to get called before CFRunLoopStart, causing the runloop to never stop and thus the done channel to be waited on forever.
In practice, if I have two watch commands back to back, I get a deadlock roughly 10% of the time on my Mac.
I have a somewhat cheesy workaround that I'm using right now, but an ideal solution probably involves CFRunLoopObserver or somesuch.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-bugZ-needs implementationNeeds an implementation, will accept PRsNeeds an implementation, will accept PRsos-mac