We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0216d4 commit d9e1dedCopy full SHA for d9e1ded
1 file changed
client/src/test/java/io/appulse/epmd/java/client/util/LocalEpmdHelper.java
@@ -25,19 +25,17 @@
25
26
import lombok.SneakyThrows;
27
import lombok.val;
28
-import lombok.extern.slf4j.Slf4j;
29
30
/**
31
*
32
* @author Artem Labazin
33
* @since 0.2.1
34
*/
35
-@Slf4j
36
public final class LocalEpmdHelper {
37
38
@SneakyThrows
39
public static boolean exists () {
40
- val builder = new ProcessBuilder("which", "epmd");
+ val builder = new ProcessBuilder("epmd", "--help");
41
Process process;
42
try {
43
process = builder.start();
@@ -48,7 +46,7 @@ public static boolean exists () {
48
46
process.destroy();
49
47
return false;
50
}
51
- return process.exitValue() == 0;
+ return process.exitValue() != 127;
52
53
54
0 commit comments