boolean () { List<String> command = getProcessService().getCommand(myProcess); String executable = ContainerUtil.getFirstItem(command); boolean wsl = executable != null && PathUtil.getFileName(executable).equals("wsl.exe"); if (wsl) { LOG.info("WinP graceful termination does not work for WSL process: " + command); } if (LOG.isDebugEnabled()) { LOG.debug("[graceful termination with WinP] WSL process: " + wsl + ", process: " + myProcess.getClass() + ", command: " + command); } return wsl; }