getsentry / getsentry/sentry-python

Introduce fork-safety fix to `SessionFlusher` and `BackgroundWorker`

Offen
#6,164 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Bug Python
Vorherrschende Sprache
Python
Sterne
2.2k
Forks
669
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
213

Beschreibung

Related:

* getsentry/sentry-python#6149
* getsentry/sentry-python#6148

There have been a couple of reported cases where a deadlock occurs when `os.fork` is used and the child process inherits an acquired lock that the parent process had set.

There are other sites that have a similar code pattern to the issues linked above within `SessionFlusher` and `BackgroundWorker` that will need to be updated to prevent this deadlock from happening.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.