From 58932b42802c93fdfc3eea8cdcdcca4534293941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 8 Nov 2017 17:59:15 +0100 Subject: [PATCH 40/79] TOOLS: Call "exec" for sss_debuglevel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This suggestion came from Lukáš Slebodník. The advantage of calling "exec" is to avoid forking another child of the process. Signed-off-by: Fabiano Fidêncio Reviewed-by: Lukáš Slebodník --- src/tools/wrappers/sss_debuglevel.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/wrappers/sss_debuglevel.in b/src/tools/wrappers/sss_debuglevel.in index aa19f790a26c67186123c87675d527f403b06264..a55afcddc547dfda4ac0a7e22da5f9f9407fe45f 100644 --- a/src/tools/wrappers/sss_debuglevel.in +++ b/src/tools/wrappers/sss_debuglevel.in @@ -1,4 +1,4 @@ #!/bin/sh sbindir=@sbindir@ echo "Redirecting to $sbindir/sssctl debug-level" >&2 -$sbindir/sssctl debug-level "$@" +exec $sbindir/sssctl debug-level "$@" -- 2.15.1