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

2015-09-21 Thread Lennart Poettering
On Sat, 19.09.15 18:54, Benjamin Robin (d...@benjarobin.fr) wrote: > 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

[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 ---