changeset 2153 | 635653cd73ab |
parent 2117 | 760339ccc799 |
child 2165 | d821918e3bee |
--- a/mercurial/util.py Fri Apr 28 12:38:11 2006 +0200 +++ b/mercurial/util.py Fri Apr 28 14:50:23 2006 -0700 @@ -16,6 +16,9 @@ demandload(globals(), "cStringIO errno popen2 re shutil sys tempfile") demandload(globals(), "threading time") +class SignalInterrupt(Exception): + """Exception raised on SIGTERM and SIGHUP.""" + def pipefilter(s, cmd): '''filter string S through command CMD, returning its output''' (pout, pin) = popen2.popen2(cmd, -1, 'b')