From e2bba23190475210d5d3673f9ec4c73525bff1c3 Mon Sep 17 00:00:00 2001 From: eclipse-kura-bot <77626377+eclipse-kura-bot@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:12:36 +0100 Subject: [PATCH] fix: Linux.Pid equals override [backport release-5.6.0] (#5514) fix: Linux.Pid equals override (#5509) (cherry picked from commit 00a991389bb4159a5a80570f523fad52b7bd1b6c) Co-authored-by: Mattia Dal Ben --- .../java/org/eclipse/kura/core/linux/executor/LinuxPid.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kura/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/linux/executor/LinuxPid.java b/kura/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/linux/executor/LinuxPid.java index 286c25d550d..fbf32e871fe 100644 --- a/kura/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/linux/executor/LinuxPid.java +++ b/kura/org.eclipse.kura.core/src/main/java/org/eclipse/kura/core/linux/executor/LinuxPid.java @@ -52,7 +52,7 @@ public boolean equals(Object obj) { return false; } LinuxPid other = (LinuxPid) obj; - return this.pid != other.pid; + return this.pid == other.pid; } -} \ No newline at end of file +}