quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] inspect-wrapper: Use exec to pass control back


From: Jean Delvare
Subject: [Quilt-dev] [PATCH] inspect-wrapper: Use exec to pass control back
Date: Wed, 5 Nov 2014 13:01:33 +0100

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(-)

--- 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


-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]