◐ Shell
reader mode source ↗
Skip to content

Journald GIL release#170

Open
ggoldber wants to merge 1 commit into
systemd:mainfrom
ggoldber:jourland_gil
Open

Journald GIL release#170
ggoldber wants to merge 1 commit into
systemd:mainfrom
ggoldber:jourland_gil

Conversation

@ggoldber

@ggoldber ggoldber commented Apr 5, 2026

Copy link
Copy Markdown

When calling to sendv from journald handler, GIL is not released hence any issue with Journald causes every other thread to hang until the call is complete,

  • added gil release / gil acquire around sendv, as well as a compilation flag to disable it
  • added a docker-compose for convenient local build

@ggoldber ggoldber force-pushed the jourland_gil branch 6 times, most recently from 8eb400f to 0be4ebe Compare April 5, 2026 20:15
release gil before sending a log to journald and release afterwards

Readme

builder updates

make wheel

clean
@behrmann

behrmann commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

@septatrix septatrix left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

I wonder what the advantages of putting this behind a compile flag are? As long as the implementation still upholds the same requirement (e.g. no cross-thread access to journal) I see no advantage of every keeping the GIL locked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants