We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321094a commit 2be2332Copy full SHA for 2be2332
jupyter_client/provisioning/local_provisioner.py
@@ -59,7 +59,9 @@ async def wait(self) -> Optional[int]:
59
await asyncio.sleep(0.1)
60
61
# Process is no longer alive, wait and clear
62
- ret = self.process.wait()
+ # Popen.__exit__ cleans up resources such as pipes
63
+ with self.process:
64
+ ret = self.process.wait()
65
self.process = None # allow has_process to now return False
66
return ret
67
0 commit comments