From 36ef6d6a310d7a4a35a3c505d041e9fbd11125fa Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 21 Aug 2009 16:00:27 -0400 Subject: PR10544: clean up stap child process error handling * util.cxx (stap_system): Take extra verbosity value. Standardize error handling / tracing. * util.h: Corresponding changes. * buildrun.cxx, main.cxx, modsign.cxx: Update callers. --- main.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'main.cxx') diff --git a/main.cxx b/main.cxx index a3a7e56e..bc0d7389 100644 --- a/main.cxx +++ b/main.cxx @@ -1330,10 +1330,8 @@ pass_5: // Remove the temporary directory. string cleanupcmd = "rm -rf "; cleanupcmd += s.tmpdir; - if (s.verbose>1) clog << "Running " << cleanupcmd << endl; - int status = stap_system (cleanupcmd.c_str()); - if (status != 0 && s.verbose>1) - clog << "Cleanup command failed, status: " << status << endl; + + (void) stap_system (s.verbose, cleanupcmd); } } -- cgit