Skip to content

Commit

Permalink
Adding the sleep back in
Browse files Browse the repository at this point in the history
  • Loading branch information
Soren Ptak committed Jul 11, 2023
1 parent 2019c40 commit 40f065b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executable-monitor/executable-monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
ReadOutputFile = open("output.log", "r")

# Launch the executable
exe = subprocess.Popen([exe_abs_path], stdout=WriteOutputFile, stderr=WriteOutputFile, universal_newlines=True)
exe = subprocess.Popen([exe_abs_path], stdout=WriteOutputFile, stderr=WriteOutputFile, universal_newlines=True, env=os.environ)

cur_time_seconds = time.time()
timeout_time_seconds = cur_time_seconds + args.timeout_seconds
Expand All @@ -113,8 +113,8 @@

# While a timeout hasn't happened, the executable is running, and an exit condition has not been met
while ( not exit_condition_met ):
# Uncomment this sleep for a short duration between loops to not steal all system resources
# time.sleep(.05)
# Sleep for a short duration between loops to not steal all system resources
time.sleep(.05)

# Check if executable exitted
exe_exit_status = exe.poll()
Expand Down

0 comments on commit 40f065b

Please sign in to comment.