Pass the right number of arguments to exit()

When using gdb to quit the panel, pass the right number of arguments
to exit(), so that gdb calls it instead of erroring out.

svn path=/trunk/; revision=22
This commit is contained in:
Owen Taylor 2008-11-02 04:18:36 +00:00
parent ce969f7bb4
commit 0a2a65e810

View File

@ -17,7 +17,7 @@ try:
for pid in pids:
subprocess.call(["gdb", "-batch-silent",
"-ex", "call panel_session_do_not_restart()",
"-ex", "call exit()",
"-ex", "call exit(0)",
"-p", pid], stdout=devnull, stderr=devnull)
devnull.close()