Re: [systemd-devel] startxfce4 vs logind

2015-09-19 Thread Mantas Mikulėnas
On Sun, Sep 20, 2015 at 1:05 AM, Dimitri John Ledkov < dimitri.j.led...@intel.com> wrote: > Heya, > > I boot to tty1, and login as my normal user account. > > Session c1, is active and has type tty. And I can access devices which > are marked as uaccess. > > Then I do $ startxfce4 -> which starts

[systemd-devel] [PATCH] systemd-notify: Always pass a valid pid to sd_pid_notify

2015-09-19 Thread Benjamin Robin
If the option --pid was used, take the pid from this option, unless take the parend pid. Using 0 as pid (ucred of systemd-notify) will result 99% of the time in a failure with this error: "Cannot find unit for notify message of PID" Shouldn't we use always the ppid, since the MAINPID is something

[systemd-devel] [PATCH] systemd-notify: Always pass a valid pid to sd_pid_notify

2015-09-19 Thread Benjamin Robin
If the option --pid was used, take the pid from this option, unless take the parend pid. Using 0 as pid (ucred of systemd-notify) will result 99% of the time in a failure with this error: "Cannot find unit for notify message of PID" Shouldn't we use always the ppid, since the MAINPID is something

Re: [systemd-devel] startxfce4 vs logind

2015-09-19 Thread Dimitri John Ledkov
On 19 September 2015 at 23:05, Dimitri John Ledkov wrote: > Heya, > > I boot to tty1, and login as my normal user account. > > Session c1, is active and has type tty. And I can access devices which > are marked as uaccess. > > Then I do $ startxfce4 -> which starts

Re: [systemd-devel] [PATCH] systemd-notify: Always pass a valid pid to sd_pid_notify

2015-09-19 Thread systemd github import bot
Patchset imported to github. To create a pull request, one of the main developers has to initiate one via: -- Generated by https://github.com/haraldh/mail2git

[systemd-devel] startxfce4 vs logind

2015-09-19 Thread Dimitri John Ledkov
Heya, I boot to tty1, and login as my normal user account. Session c1, is active and has type tty. And I can access devices which are marked as uaccess. Then I do $ startxfce4 -> which starts graphical interface. However, at that time I "loose" the logind session. No new sessions are started,

[systemd-devel] [PATCH] Fix: Cannot call sd_pid_notify_with_fds with valid pid

2015-09-19 Thread Benjamin Robin
The tool called this way: "systemd-notify --pid=$$" is not working When calling sd_pid_notify* functions with a valid pid (pid != 0), the sendmsg failed. The msg_controllen is invalid, because CMSG_SPACE(0) is not equal to 0. Signed-off-by: Benjamin Robin ---