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

_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to