Skip to content

Commit 38d327f

Browse files
committed
Don't eagerly kill failed decompile processes. Closes #20
1 parent d24b823 commit 38d327f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/net/minecraftforge/mcmaven/impl/util/ProcessUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ public static int runCommand(File workDir, Consumer<String> lines, ToIntFunction
158158
if (logHandler != null && forcedExit == 0) {
159159
forcedExit = logHandler.applyAsInt(line);
160160

161+
/* We can't destroy the process here because we want to log everything. For some reason it doesn't finish logging if we do this.
161162
// We don't want to exit here, because we want to log the rest of the output before exiting.
162163
if (forcedExit != 0)
163164
process.destroy();
165+
*/
164166
}
165167
}
166168
} catch (IOException e) {

0 commit comments

Comments
 (0)