From 38f5989a3663c887e908476321aff715cc7b1cec Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 12 Nov 2014 15:09:42 +0100 Subject: inspect-wrapper: Use exec to pass control back When the wrapper script is done, it passes control back to tar, unzip or patch. Nothing needs to be done after that, so we might as well use exec to switch to the new process. That should be marginally faster than regular forking. --- quilt/scripts/inspect-wrapper.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quilt/scripts/inspect-wrapper.in b/quilt/scripts/inspect-wrapper.in index 2fb5bc2..62eef87 100644 --- a/quilt/scripts/inspect-wrapper.in +++ b/quilt/scripts/inspect-wrapper.in @@ -261,7 +261,7 @@ fi if [ -n "$inputfile" ] then - ${0##*/} "$@" + exec ${0##*/} "$@" else - ${0##*/} "$@" < $tmpdir/data + exec ${0##*/} "$@" < $tmpdir/data fi -- cgit