On Wed, 08.02.12 10:10, Michael Olbrich ([email protected]) wrote:

Applied, thanks!

> ---
>  src/service.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/src/service.c b/src/service.c
> index 1631595..a190a73 100644
> --- a/src/service.c
> +++ b/src/service.c
> @@ -1735,6 +1735,12 @@ static int service_spawn(
>                          goto fail;
>                  }
>  
> +        if (s->watchdog_usec > 0)
> +                if (asprintf(our_env + n_env++, "WATCHDOG_USEC=%llu", 
> (unsigned long long) s->watchdog_usec) < 0) {
> +                        r = -ENOMEM;
> +                        goto fail;
> +                }
> +
>          if (!(final_env = strv_env_merge(2,
>                                           UNIT(s)->manager->environment,
>                                           our_env,


Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to