[systemd-devel] [PATCH] service: remove unneccesary Socket.got_socket_fd

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Dec 1 16:55:30 PST 2013


On Wed, Nov 20, 2013 at 12:35:04AM -0800, Shawn Landden wrote:
> ---
>  src/core/service.c | 3 +--
>  src/core/service.h | 2 --
>  2 files changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/src/core/service.c b/src/core/service.c
> index c0ee114..24f7a42 100644
> --- a/src/core/service.c
> +++ b/src/core/service.c
> @@ -2812,7 +2812,7 @@ _pure_ static bool service_check_snapshot(Unit *u) {
>  
>          assert(s);
>  
> -        return !s->got_socket_fd;
> +        return (s->socket_fd < 0);
>  }
Yep, looks correct. Applied.

Zbyszek


More information about the systemd-devel mailing list