From 0a2a65e8105a857a6fb628455df9866cd1a5a1cf Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 2 Nov 2008 04:18:36 +0000 Subject: [PATCH] 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 --- scripts/start-replace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-replace b/scripts/start-replace index e28c9e8df..2bf5f1c69 100755 --- a/scripts/start-replace +++ b/scripts/start-replace @@ -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()