5 ms·
Option 1 is already provided. The sd_notify function is simply a convenience wrapper for sending messages on a socket specified by the NOTIFY_SOCKET environmen
by bwhmather 12y ago
Option 1 is already provided. The sd_notify function is simply a convenience wrapper for sending messages on a socket specified by the NOTIFY_SOCKET environment variable.
See the notes in sd_notify(3) or https://lists.debian.org/debian-ctte/2013/12/msg00230.html https://lists.debian.org/debian-ctte/2013/12/msg00230.html for a simple alternative implementation. Admittedly could be better documented.
edit: point to notes section
- mzs 12y agoMSG_NOSIGNAL is a portability PITA.