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 <reich...@numachi.com> BSD admin/developer at large _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel