Skip to content

Commit 283c756

Browse files
print tmp file if used
1 parent 62a9891 commit 283c756

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@ int main(int argc, const char** argv) {
604604
// Running jattach in that case will cause the asprof to incorrectly conclude with non 0 exit code
605605
if (kill(pid, 0) == 0) {
606606
run_jattach(pid, String("stop,file=") << file << "," << output << format << ",log=" << logfile);
607+
} else if (use_tmp_file) {
608+
print_file(file, STDOUT_FILENO);
607609
}
608610
} else {
609611
if (action == "start" || action == "resume") run_fdtransfer(pid, fdtransfer);

0 commit comments

Comments
 (0)