Skip to content

Commit 1226822

Browse files
authored
Use a timeout when checking if proc is dead in proc.poll (microsoft#11591)
For #11590
1 parent 814956f commit 1226822

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎pythonFiles/vscode_datascience_helpers/kernel_launcher_daemon.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sys
1010
import subprocess
1111
import threading
12+
import time
1213
from vscode_datascience_helpers.daemon.daemon_python import (
1314
error_decorator,
1415
PythonDaemon as BasePythonDaemon,
@@ -138,7 +139,7 @@ def _read_stdout_in_background(self):
138139
sys.stdout.flush()
139140

140141
def _monitor_kernel(self):
141-
while self.kernel.poll() is None:
142+
while self.kernel.poll(timeout=None) is None:
142143
pass
143144

144145
exit_code = self.kernel.poll()

0 commit comments

Comments
 (0)