aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-09-04 12:47:03 +0100
committerRon Yorston <rmy@pobox.com>2024-09-04 12:47:03 +0100
commitcbfa58d56c3ca59538bf23e30105ce27ed5ef948 (patch)
tree29c88182b7ff243931d5956121e23cd877112b16 /include
parent13a2b505b3fd7abcb4b4516d6745df870d7aee64 (diff)
downloadbusybox-w32-cbfa58d56c3ca59538bf23e30105ce27ed5ef948.tar.gz
busybox-w32-cbfa58d56c3ca59538bf23e30105ce27ed5ef948.tar.bz2
busybox-w32-cbfa58d56c3ca59538bf23e30105ce27ed5ef948.zip
ash: optimise running of scripts (2)
Commit 4b7b4a960 (ash: optimise running of scripts) avoided creation of a process when running a script. There's another case where we can do the same: if the script is being run from a FS_SHELLEXEC shell. - Check the necessary conditions for this to happen. - Allocate two extra slots in the argv array for FS_SHELLEXEC. - Set the index of the script file in the argv array. Without this the test 'pidof this' failed because the command name hadn't been correctly set. Adds 80-96 bytes.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index ed7884e39..65940b40b 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -667,3 +667,4 @@ enum {
667 ADMIN_ENABLED = 2 667 ADMIN_ENABLED = 2
668}; 668};
669int elevation_state(void); 669int elevation_state(void);
670void set_interp(int i) FAST_FUNC;