getsentry / getsentry/sentry-python

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

Abierto
#6,164 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Bug Python
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 1 h
PR fusionados (30 d)
213

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.