[PATCH 1/3] scripts: Avoid spawning yet another process in meson-python.sh

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

 



The aim of message-python.sh wrapper is to set some environment
variables and then execute whatever it was called with (usually a
python binary).

Well, we can use 'exec' to replace the shell process with python
instead of forking yet another process.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 scripts/meson-python.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/meson-python.sh b/scripts/meson-python.sh
index 9ba670fc1a..52b37be926 100755
--- a/scripts/meson-python.sh
+++ b/scripts/meson-python.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-LC_ALL= LANG=C LC_CTYPE=en_US.UTF-8 "$@"
+LC_ALL= LANG=C LC_CTYPE=en_US.UTF-8 exec "$@"
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux