diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-01 17:53:43 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-10-01 17:53:43 +0200 |
commit | c2e5d024a380bae6ead301fb4f40787b372ec3e0 (patch) | |
tree | ef7ecb86df3823a6996dbecea97c6344fe03a34c /src/login/multi-seat-x.c | |
parent | 081dfa852fc5cd183a20747f2d8e4ef62d29d181 (diff) |
logind: check whether first drmSetMaster succeeded
The initial drmSetMaster may fail if there is an active master already. We
must not assume that all existing clients comply to logind rules. We check
for this during session-activation already but didn't during device setup.
Fix this by checking the return code.
As drmSetMaster has had horrible return codes in the past (0 for failure?
EINVAL for denied access, ..) we need to be quite pedantic. To guarantee
an open file-descriptor we need to close the device and reopen it without
master if setting master failed first.
Diffstat (limited to 'src/login/multi-seat-x.c')
0 files changed, 0 insertions, 0 deletions