[systemd-devel] [systemd-commits] src/shared TODO

Lennart Poettering lennart at poettering.net
Fri May 15 08:08:12 PDT 2015

B1;3802;0cOn Sun, 10.05.15 10:18, Zbigniew Jędrzejewski-Szmek (zbyszek at kemper.freedesktop.org) wrote:

> +
> +        fflush(f);
> +        if (ferror(f))
> +                return log_error_errno(errno, "Failed to write unit file %s: %m", unit);

Small note: please use fflush_and_check() for cases like this, it
makes this a bit shorter and safer...

(I changed this in git now)


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list