diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-11-12 15:09:42 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-11-12 15:09:42 +0100 |
commit | 38f5989a3663c887e908476321aff715cc7b1cec (patch) | |
tree | 81af28f42dbed894cd056e0790228e893ead5edd | |
parent | 1e5d95849e4a09427efefc7bd7e9f33bf911f526 (diff) | |
download | quilt-38f5989a3663c887e908476321aff715cc7b1cec.tar.gz |
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.
-rw-r--r-- | quilt/scripts/inspect-wrapper.in | 4 |
1 files 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 |