← index #780PR #4659
Off-topic · high · value 0.487
QUERY · ISSUE

popen leaves zombie processes

openby protectivedadopened 2023-12-21updated 2024-10-12
bug

I discuss this here. The zombie processes make it hard to use if it is called continuously. I reverted to piping to file and reading the output.

CANDIDATE · PULL REQUEST

run-tests: Fix repl test termination

closedby stinosopened 2019-03-31updated 2019-04-08

Popen.kill() raises a ProcessLookupError if the process does not exist,
which can happen here since the previous statement already tries to close
the process by sending Ctrl-D to the running repl.
Just swallow the exception silently since it indicates the process has
been closed already which is the desired effect here.

I encountered this with Ubuntu running on WSL, strange it doesn't occur elsewhere. Unless sending Ctrl-D does not do what I think it does?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied