You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The String.runCommand function currently utilizes Process.waitFor(), which, according to the Java documentation, returns false when a timeout occurs. However, the existing implementation erroneously attempts to read from the error and input streams immediately after a timeout, leading to an unintended wait state. This behavior causes the code to exit due to the timeout but then immediately enters another waiting period for the process to finish.