Skip to content

Conversation

@dickmao
Copy link

@dickmao dickmao commented May 23, 2024

python - <<EOF
from time import sleep
import jsonrpyc; from subprocess import Popen, PIPE
p=Popen(["sleep", "120"], stdin=PIPE, stdout=PIPE)
rpc = jsonrpyc.RPC(stdin=p.stdout)
p.kill()
while rpc.watchdog.is_alive():
  sleep(1)
EOF

Now look at the processes on your machine. At least on my Linux system, I see the python suck down a core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant