Skip to content

Commit a4733ce

Browse files
Fixed wrong pid in destination filename
1 parent f714215 commit a4733ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/benjaminsoelberg/jft/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public Options(String[] args) throws ParserException {
7070
File file = null;
7171
try {
7272
if (destination == null || destination.isBlank()) {
73-
file = Files.createTempFile("dump-" + ProcessHandle.current().pid() + "-", ".jar").toFile();
73+
file = Files.createTempFile("dump-" + pid + "-", ".jar").toFile();
7474
destination = file.getPath(); // We'll reuse it as destination filename in the agent
7575
} else {
7676
file = new File(destination);

0 commit comments

Comments
 (0)