[systemd-devel] [systemd-commits] 3 commits - src/fsckd src/shared

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Mar 16 10:41:41 PDT 2015


On Mon, Mar 16, 2015 at 10:33:54AM -0700, Tom Gundersen wrote:
>  src/fsckd/fsckd.c |   13 ++++++++++---
>  src/shared/util.c |    4 ++++
>  src/shared/util.h |    2 ++
>  3 files changed, 16 insertions(+), 3 deletions(-)
> 
> New commits:
> commit e26169bd48c64753510a1194abdf4fb5dc907123
> Author: Didier Roche <didrocks at ubuntu.com>
> Date:   Tue Mar 10 10:05:19 2015 +0100
> 
>     fsckd: check if plymouth is running before attempting connection
> 
> diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c
> index f24715c..6b35fc2 100644
> --- a/src/fsckd/fsckd.c
> +++ b/src/fsckd/fsckd.c
> @@ -231,9 +231,12 @@ static int manager_connect_plymouth(Manager *m) {
>          union sockaddr_union sa = PLYMOUTH_SOCKET;
>          int r;
>  
> +        if (!plymouth_running())
> +                return 0;
Why do we need to do this check? We try to connect right below, and
we'll get a connection error if plymouth is not running.

Zbyszek


More information about the systemd-devel mailing list