diff options
| author | Saikari <[email protected]> | 2026-01-27 12:39:49 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-01-27 12:39:49 +0300 |
| commit | 9914c5cb87077a289f2ec32e360762e91a4378e4 (patch) | |
| tree | 9c557d6f95c2d87ebd25691eb5aff14efb76615b | |
| parent | 33ec7a0a2ea8b21b8c896e828ecb80b6da6398d1 (diff) | |
limit shell detection loop to prevent excessive iterations
| -rw-r--r-- | xmake/core/base/tty.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/tty.lua b/xmake/core/base/tty.lua index 1976a8bb2..0144795f9 100644 --- a/xmake/core/base/tty.lua +++ b/xmake/core/base/tty.lua @@ -245,7 +245,7 @@ function tty._find_shell_from_parent() local pid = os.getpid() local tmpfile = os.tmpfile() local count = 0 - while pid ~= 0 and count < 10 do + while pid ~= 0 and count < 4 do count = count + 1 local shell_name = nil local shell_path = nil |
