diff options
| author | Ron Yorston <rmy@pobox.com> | 2024-09-04 12:47:03 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2024-09-04 12:47:03 +0100 |
| commit | cbfa58d56c3ca59538bf23e30105ce27ed5ef948 (patch) | |
| tree | 29c88182b7ff243931d5956121e23cd877112b16 /include | |
| parent | 13a2b505b3fd7abcb4b4516d6745df870d7aee64 (diff) | |
| download | busybox-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.h | 1 |
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 | }; |
| 669 | int elevation_state(void); | 669 | int elevation_state(void); |
| 670 | void set_interp(int i) FAST_FUNC; | ||
