From: Zbigniew Jędrzejewski-Szmek Date: Tue, 20 Nov 2018 14:52:40 +0000 (+0100) Subject: shared/main-func: also close the polkit agent automatically X-Git-Tag: v240~258^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6db316372a9d4c4c8c6d7cd1841b3b5630b4428;p=thirdparty%2Fsystemd.git shared/main-func: also close the polkit agent automatically The agent is closed after the static destuctors but before the pager. No users of DEFINE_MAIN_FUNCTION* were using a polkit agent, so this makes no functional difference. --- diff --git a/src/shared/main-func.h b/src/shared/main-func.h index 24bf6c99bfa..d8fd89df3c0 100644 --- a/src/shared/main-func.h +++ b/src/shared/main-func.h @@ -4,6 +4,7 @@ #include #include "pager.h" +#include "spawn-polkit-agent.h" #include "static-destruct.h" #define _DEFINE_MAIN_FUNCTION(impl, ret) \ @@ -11,6 +12,7 @@ int r; \ r = impl(argc, argv); \ static_destruct(); \ + polkit_agent_close(); \ pager_close(); \ return ret; \ }