summaryrefslogtreecommitdiff
path: root/src/udev/v4l_id
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-07-01 15:05:01 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2015-07-01 16:52:35 +0200
commit0204c4bd69f694b527643ace9d434befce80085c (patch)
tree08a5c051bbbea6cc1f8e74f2f91af268e60287c4 /src/udev/v4l_id
parente15b0388654518a138400de8da6cf7c5ce5d8fad (diff)
login: re-use VT-sessions if they already exist
Right now, if you start a session via 'su' or 'sudo' from within a session, we make sure to re-use the existing session instead of creating a new one. We detect this by reading the session of the requesting PID. However, with gnome-terminal running as a busname-unit, and as such running outside the session of the user, this will no longer work. Therefore, this patch makes sure to return the existing session of a VT if you start a new one. This has the side-effect, that you will re-use a session which your PID is not part of. This works fine, but will break assumptions if the parent session dies (and as such close your session even though you think you're part of it). However, this should be perfectly fine. If you run multiple logins on the same session, you should really know what you're doing. The current way of silently accepting it but choosing the last registered session is just weird.
Diffstat (limited to 'src/udev/v4l_id')
0 files changed, 0 insertions, 0 deletions