[systemd-devel] [RFC PATCH 1/2] Replace mkostemp+unlink with open(O_TMPFILE)

Lennart Poettering lennart at poettering.net
Mon Jan 27 10:11:49 PST 2014


On Mon, 27.01.14 19:09, Lennart Poettering (lennart at poettering.net) wrote:

> I just really don't like exposing two codepaths to the user. I want one
> version that works for everybody, because people are highly like to
> misuse this otherwise. Logging is so basic that people shouldn't be able
> to fuck it up...

To clarify this: I neither like having two codepaths essentially doing
the same here, and one tested and the other one barely... Nor do I like
even given the caller control about this. I mean, we can make sure for
our own code that we handle async signal safety properly, but it appears
like a difficult request to make to other people...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list