Review Request 128790: Remove usage of utempter
Oswald Buddenhagen
ossi at kde.org
Sun Aug 28 13:41:41 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128790/#review98742
-----------------------------------------------------------
uhm, and why do you think utempter is the preferred choice?
last time i checked, nobody was shipping konsole setgid utmp. with kdeinit, that's not even an option.
there are several options how to deal with this:
- fork()/wait() around the utempter calls, so it can't mess with the signal handling of the current process. though i seem to remmber that the addToUtmp() call actually uses the PID
- re-implement the libutempter calls with QProcess. that's actually how it was originally, but was changed because there were incompatible versions of utempter - but that seems like a minor concern compared to the status quo.
- drop utmp handling altogether, as it's been mostly superseded, first by consolekit, and now logind. however, respective bindings would have to be actually implemented, and i have no clue how things are supposed to be done. just some dbus calls?
-- what about non-linux systems?
- Oswald Buddenhagen
On Aug. 28, 2016, 1:13 p.m., Martin Tobias Holmedahl Sandsmark wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128790/
> -----------------------------------------------------------
>
> (Updated Aug. 28, 2016, 1:13 p.m.)
>
>
> Review request for KDE Frameworks, David Faure, Kurt Hindenburg, Rex Dieter, and Thiago Macieira.
>
>
> Bugs: 364779
> https://bugs.kde.org/show_bug.cgi?id=364779
>
>
> Repository: kpty
>
>
> Description
> -------
>
> According to the investigation in https://bugs.kde.org/show_bug.cgi?id=364779 utempter does stuff in a way that isn't compatible with QProcess/KProcess/KPtyProcess (calling sigaction() before launching its child process). So remove it, and rely on the fallback methods already implemented.
>
>
> Diffs
> -----
>
> CMakeLists.txt 3e17cac
> KF5PtyConfig.cmake.in 66f8c43
> cmake/FindUTEMPTER.cmake a3ea06a
> src/CMakeLists.txt caab96f
> src/ConfigureChecks.cmake ded08f4
> src/config-pty.h.cmake aaaf8d9
> src/kpty.cpp 15c3b81
>
> Diff: https://git.reviewboard.kde.org/r/128790/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Martin Tobias Holmedahl Sandsmark
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160828/8c7ffcd7/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list