giltene / jHiccup

jHiccup is a non-intrusive instrumentation tool that logs and records platform "hiccups" - including the JVM stalls that often happen when Java applications are executed and/or any OS or hardware platform noise that may cause the running application to not be continuously runnable.
Other
686 stars 92 forks source link

Path for control thread log file is wrong under some circumstances #10

Closed boniek83 closed 10 years ago

boniek83 commented 10 years ago

Running with "-l hiccup -c" causes control thread log file to be written in / where normal users don't have privileges to write.

boniek83 commented 10 years ago

Removing if (parentFileNamePart == null) { parentFileNamePart = ""; } fixes this issue. BTW my OS is Linux.

giltene commented 10 years ago

Thanks for pointing this out. Fixed with https://github.com/giltene/jHiccup/commit/17e91fed86f4e4d903025ae1b6a53750de493bc2