From 08c68653dd3dc7921339dfe4627c464ef4249faa Mon Sep 17 00:00:00 2001 From: trz Date: Wed, 19 Oct 2005 19:35:35 +0000 Subject: fixes part of PR1194 (passing -o option to stpd) --- main.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cxx') diff --git a/main.cxx b/main.cxx index 88ee9540..ca9bfc69 100644 --- a/main.cxx +++ b/main.cxx @@ -110,7 +110,6 @@ main (int argc, char * const argv []) string cmdline_script; // -e PROGRAM string script_file; // FILE bool have_script = false; - string output_file = "-"; // -o FILE // Initialize defaults systemtap_session s; @@ -124,6 +123,7 @@ main (int argc, char * const argv []) s.buffer_size = 0; s.last_pass = 5; s.module_name = "stap_" + stringify(getpid()); + s.output_file = ""; // -o FILE s.keep_tmpdir = false; s.cmd = ""; s.target_pid = 0; @@ -176,7 +176,7 @@ main (int argc, char * const argv []) break; case 'o': - output_file = string (optarg); + s.output_file = string (optarg); break; case 't': -- cgit