Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/gpg: Use g_spawn_sync to kill gpg-agent #1917

Closed

Conversation

dbnicholson
Copy link
Member

For reasons I don't understand, GSubprocess doesn't play nice with KDE's
plasmashell. I assume this has something to do with the GSubprocess
using the glib worker thread while plasmashell uses the glib main
loop. Instead, just use g_spawn_sync to fork and wait in the current
thread.

Fixes: #1913

For reasons I don't understand, GSubprocess doesn't play nice with KDE's
plasmashell. I assume this has something to do with the GSubprocess
using the glib worker thread while plasmashell uses the glib main
loop. Instead, just use g_spawn_sync to fork and wait in the current
thread.

Fixes: ostreedev#1913
@cgwalters
Copy link
Member

cgwalters commented Sep 7, 2019

For reasons I don't understand, GSubprocess doesn't play nice with KDE's
plasmashell. I assume this has something to do with the GSubprocess
using the glib worker thread while plasmashell uses the glib main
loop.

<excited child in front of class raises hand> I know I know!

It's because of SIGCHLD - related to the GLib worker thread indeed. Basically g_spawn_sync doesn't register a handler, but GSubprocess is more generic. Theoretically perhaps it could be changed to only add a watch if the wait was async.

@cgwalters
Copy link
Member

Thanks a lot for tracking this down!

@rh-atomic-bot r+ 24015c1

@rh-atomic-bot
Copy link

⌛ Testing commit 24015c1 with merge e49060c...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: cgwalters
Pushing e49060c to master...

@dbnicholson dbnicholson deleted the spawn-gpg-connect-agent branch September 8, 2019 15:53
d4s pushed a commit to d4s/ostree that referenced this pull request Nov 4, 2019
For reasons I don't understand, GSubprocess doesn't play nice with KDE's
plasmashell. I assume this has something to do with the GSubprocess
using the glib worker thread while plasmashell uses the glib main
loop. Instead, just use g_spawn_sync to fork and wait in the current
thread.

Fixes: ostreedev#1913

Closes: ostreedev#1917
Approved by: cgwalters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ostree causing issues with multiple KDE users
3 participants