diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-08-21 16:00:27 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-08-21 16:00:27 -0400 |
commit | 36ef6d6a310d7a4a35a3c505d041e9fbd11125fa (patch) | |
tree | 46233e0e37d3407a05b9c4e5c3f60c6393171806 /main.cxx | |
parent | b6921d5942950cb988318c36ee0e0792311f1ccc (diff) | |
download | systemtap-steved-36ef6d6a310d7a4a35a3c505d041e9fbd11125fa.tar.gz systemtap-steved-36ef6d6a310d7a4a35a3c505d041e9fbd11125fa.tar.xz systemtap-steved-36ef6d6a310d7a4a35a3c505d041e9fbd11125fa.zip |
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.
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); } } |