##// END OF EJS Templates
Merge pull request #10412 from ipython/auto-backport-of-pr-10408...
Thomas Kluyver -
r23515:c09f939e merge
parent child Browse files
Show More
@@ -246,6 +246,8 b' class ScriptMagics(Magics):'
246 246
247 247 def kill_bg_processes(self):
248 248 """Kill all BG processes which are still running."""
249 if not self.bg_processes:
250 return
249 251 for p in self.bg_processes:
250 252 if p.poll() is None:
251 253 try:
@@ -253,6 +255,9 b' class ScriptMagics(Magics):'
253 255 except:
254 256 pass
255 257 time.sleep(0.1)
258 self._gc_bg_processes()
259 if not self.bg_processes:
260 return
256 261 for p in self.bg_processes:
257 262 if p.poll() is None:
258 263 try:
@@ -260,6 +265,9 b' class ScriptMagics(Magics):'
260 265 except:
261 266 pass
262 267 time.sleep(0.1)
268 self._gc_bg_processes()
269 if not self.bg_processes:
270 return
263 271 for p in self.bg_processes:
264 272 if p.poll() is None:
265 273 try:
General Comments 0
You need to be logged in to leave comments. Login now