in src/main/java/com/spotify/fmt/ForkingExecutor.java [345:369]
public static void main(String... args) {
log.debug("child process started: args=" + Arrays.asList(args));
final Watchdog watchdog = new Watchdog();
watchdog.start();
if (args.length != 3) {
log.error("args.length != 3");
System.exit(3);
return;
}
final Path closureFile;
final Path resultFile;
final Path errorFile;
try {
closureFile = Paths.get(args[0]);
resultFile = Paths.get(args[1]);
errorFile = Paths.get(args[2]);
} catch (InvalidPathException e) {
log.error("Failed to get file path", e);
System.exit(4);
return;
}
run(closureFile, resultFile, errorFile);
}