[systemd-devel] systemd's connections to /run/systemd/private ?
Brian Reichert
reichert at numachi.com
Wed Aug 14 14:26:53 UTC 2019
On Wed, Aug 14, 2019 at 11:34:21AM +0200, Lennart Poettering wrote:
> Hence: your code that closes fd1 like this is simply buggy. Don't do
> that, you are shooting yourself in the foot.
Buggy or no, this is fifteen-year-old code, and prior cron/service
mgmt framework implementations had no issue.
And, if I were to ever use daemonize(1), or any other other canonical
mechanism for daemonizing code, STDOUT would normally be closed
under those circumstances, as well.
I'm wading into hypotheticals here, but daemonized code should, in
turn, be able to invoke whatever code is subsequently wants.
> Lennart
>
> --
> Lennart Poettering, Berlin
--
Brian Reichert <reichert at numachi.com>
BSD admin/developer at large
More information about the systemd-devel
mailing list