Background or Foreground, the agent type is the same, nothing will change
in this check.


On Tue, Mar 4, 2014 at 5:44 PM, Ted Zlatanov <notifications@github.com>wrote:

> In libpromises/generic_agent.c:
>
> >  {
> > -    time_t validated_at = ReadTimestampFromPolicyValidatedMasterfiles(config, NULL);
> > +    time_t validated_at =
> > +        ReadTimestampFromPolicyValidatedMasterfiles(config, NULL);
> > +
> > +    if (config->agent_type == AGENT_TYPE_SERVER ||
>
> I like the approach, but really think this is where we need a
> GenericAgentIsServer() function (and the setting should be in the config).
> Here's why: with -F, the daemons become foreground applications!
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cfengine/core/pull/1376/files#r10262516>
> .
>