mwilliamson / spur.py

Run commands and manipulate files locally or over SSH using the same interface
BSD 2-Clause "Simplified" License
267 stars 37 forks source link

spur hangs after child exits in local process #27

Closed uzytkownik closed 5 years ago

uzytkownik commented 9 years ago

In some circumstances (I haven't discovered what the conditions are) when I use local shell it hangs. The child process is dead but spur has not called waitpid (i.e. child is zombie).

The code calling the subprocess is more or less following:


import spur

local = spur.LocalShell()
spur.run(["git", "push", "ssh://someserver/some/git/repo.git"], cwd="some/local/git/repo", stdout=sys.stdout, stderr=sys.stderr)
mwilliamson commented 9 years ago

Hmm, I haven't come across this issue myself, so not sure how I would go about reproducing it. If you run the same command, does it happen consistently?

uzytkownik commented 9 years ago

No. When I kill the python and run again it works fine. In fact it works fine most of the time.

mwilliamson commented 5 years ago

Closing since this is an old issue that I can't reproduce. Happy to reopen if there are reproduction steps or more information.