Add an explaining comment

This commit is contained in:
Christoph Sturm 2019-09-17 18:42:46 +02:00
parent f2ec433cc2
commit feadfb86a0

View file

@ -15,6 +15,8 @@ public class OSXStandbyModeDisabler {
long pid = ProcessHandle.current().pid();
try {
String[] params = {"/usr/bin/caffeinate", "-w", "" + pid};
// we only start the process. caffeinate blocks until we exit.
new ProcessBuilder(params).start();
log.info("disabled power management via " + String.join(" ", params));
} catch (IOException e) {