Hi,
I have small service that gets started by systemd through a .socket file.
My problem is that after running
c = sd_listen_fds(0);
fprintf(stderr, "Received %d file descriptors\n", c);
for (fd = SD_LISTEN_FDS_START + 0; fd < SD_LISTEN_FDS_START + c; fd++) {
fprintf(stderr, "Processing fd=%d\n", fd);
}
c is always zero.
Apparently, after reading more about systemd, the issue might be that the
$LISTEN_PID is not set by systemd and so I don't receive a list of file
descriptors.
Any hints?
Best regards,
Mihai
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev