Proofline

In `proofline/client.py`, `_sync_deadline_state` holds the non-reentrant `_notify_lock`.

thekarannagpal/sdk-python#1Reviewed commit c9753b6

Warning · Concurrency

If a Python signal handler interrupts it and calls the watched event’s `set()`, the notification hook tries to acquire that same lock.

Impact

The main thread hangs inside the handler.

Recommended action

Defer event mutation out of the signal handler and document that requirement, or redesign notification publication so it cannot reacquire the interrupted thread’s lock.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Completed
Started
Completed