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

kde-base/pykde4: fix bugs in pythonpluginfactorywrapper.c #1032

Closed
wants to merge 1 commit into from

Conversation

marcan
Copy link
Contributor

@marcan marcan commented Mar 11, 2016

Bug: https://bugs.gentoo.org/show_bug.cgi?id=555436

The logic for checking the return value of fork() was inverted, causing the main process to continue as the child process, while the parent process execs. This can confuse libraries and applications that don't expect their PID to suddenly change, and other misc badness (process gets reparented to init, etc.).
This patch also fixes other issues (leaked file descriptors, child process left as a zombie, poor error handling).

Steps to reproduce:

  1. Check the PID of plasma-desktop
  2. Install Veromix (or another Python plasmoid) and add it to the panel
  3. Check the PID of plasma-desktop

Expected results: PID does not change
Actual results: PID changes

Bug: https://bugs.gentoo.org/show_bug.cgi?id=555436

The logic for checking the return value of fork() was inverted,
causing the main process to continue as the child process, while
the parent process execs. This can confuse libraries and
applications that don't expect their PID to suddenly change, and
other misc badness (process gets reparented to init, etc.)
@monsieurp
Copy link
Member

@gentoo/kde

@monsieurp monsieurp added bugfix assigned PR successfully assigned to the package maintainer(s). labels Mar 13, 2016
@kensington
Copy link
Contributor

Thanks a lot for your contribution. I've picked it as 22aa5c8.

@kensington kensington closed this Mar 18, 2016
@marcan marcan deleted the pykde4-fix branch June 23, 2017 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s).
Projects
None yet
3 participants