From 7027123aea5a87530cad872ccf5e05be25cf4871 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 13 Feb 2007 20:27:05 +0000 Subject: [PATCH] implement close command (!) --- virt-subproc/VirtSubproc.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.30.2