[systemd-devel] Need advice on daemon's architecture

Colin Walters walters at verbum.org
Mon Nov 4 07:59:51 PST 2013


On Mon, 2013-11-04 at 14:57 +0000, Simon McVittie wrote:

> See Linux signal(7) for a list of async-signal-safe operations: it's not
> as long a list as you might hope, and mostly contains syscalls. In
> particular, malloc() is not on the list, which rules out a lot of
> library code...

Given however that systemd is Linux/glibc-equivalent only, you can rely
on malloc() working after fork() if you're writing a daemon which only
runs on systemd systems.  See:

https://bugzilla.gnome.org/show_bug.cgi?id=659326#c24





More information about the systemd-devel mailing list