From: Ian Jackson Date: Tue, 13 Feb 2007 20:27:05 +0000 (+0000) Subject: implement close command (!) X-Git-Tag: converted-from-bzr~32^3~55 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7027123aea5a87530cad872ccf5e05be25cf4871;p=autopkgtest.git implement close command (!) --- diff --git a/virt-subproc/VirtSubproc.py b/virt-subproc/VirtSubproc.py index 97a9989..bc9af88 100644 --- a/virt-subproc/VirtSubproc.py +++ b/virt-subproc/VirtSubproc.py @@ -59,6 +59,11 @@ def cmd_quit(c, ce): cmdnumargs(c, ce) raise Quit(0, '') +def cmd_close(c, ce): + cmdnumargs(c, ce) + if not downtmp: bomb("`close' when not open") + cleanup() + def execute_raw(what, instr, *popenargs, **popenargsk): debug(" ++ %s" % string.join(popenargs[0])) sp = subprocess.Popen(*popenargs, **popenargsk)