Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Untitled
SUBMITTED BY:
antoineh1
DATE:
May 8, 2016, 2:13 p.m.
FORMAT:
Text only
SIZE:
139 Bytes
Raw
Download
Tweet
HITS:
4851
Go to comments
Report
import subprocess
import signal
p = subprocess.Popen(["sleep", "3600"])
p.send_signal(signal.SIGINT)
ret = p.wait()
assert ret == -2
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus