Re: systemd (Was Re: tmpfs for strategic directories)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 May 2010 18:20:08 +0200
Lennart Poettering <mzerqung@xxxxxxxxxxx> wrote:

> Regarding the LISTEN_PID env var:
> 
> environment variables are normally inherited when forking/execing. We
> want to make sure that only the process we actually start ourselves
> parses and handles LISTEN_FDS. We want to avoid that if this daemon
> might spawn some other process, it might get confused into handling
> LISTEN_FDS, although that env var wasn't actually intended for it.
> 
> And hence we say that LISTEN_PID should be verified first, and only if
> it matches LISTEN_FDS should be handled.

If you are mandating behavior in daemons, wouldn't it be simpler to
mandate the daemon unsets LISTEN_FDS ?

If I replace the process with a script, or the dameon runs other
processes LISTEN_PID is going to be wrong anyway, not sure how useful
it really is.

You are assuming that the process you run is always going to be *the*
daemon. I think it is an unrealistic assumption to make.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux