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] [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 Mantas Mikulėnas
On Sun, Sep 20, 2015 at 1:05 AM, Dimitri John Ledkov < [email protected]> 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 ___

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 graphical interface. However, >

[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] 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, se

[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 --- src/libsystemd/sd-daemon/sd-daemon.

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

2015-09-19 Thread Benjamin Robin
The "systemd-notify --pid=$$" call 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. Further more the documentation is not exactly right, it said: --pid= Inform the init sy

[systemd-devel] How to automount

2015-09-19 Thread Paul D. DeRocco
I want a removable flash drive to be automatically mounted when I plug it in, and unmounted when I unplug it. I've done what seems to be required by the systemd.automount man page, but it's not working. The physical drive appears as /dev/sdb1 (it is a partitioned drive). The mount point (which exi