You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2026/06/09 09:37:15 UTC

(maven-resolver) branch master updated: Fix inverted SIGTSTP condition in IPC server (#1915)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git


The following commit(s) were added to refs/heads/master by this push:
     new b06e62f6e Fix inverted SIGTSTP condition in IPC server (#1915)
b06e62f6e is described below

commit b06e62f6e1020be7fa45eddcb5ee8249056ac14b
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Jun 9 11:37:10 2026 +0200

    Fix inverted SIGTSTP condition in IPC server (#1915)
    
    The condition for ignoring SIGTSTP was inverted: it tried to
    ignore TSTP on Windows (where it does not exist, causing a crash)
    and did nothing on Unix (where TSTP exists, causing the daemon
    to suspend on Ctrl-Z).
    
    Fix: ignore SIGTSTP only on non-Windows (Unix) systems.
---
 .../src/main/java/org/eclipse/aether/named/ipc/IpcServer.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-resolver-named-locks-ipc/src/main/java/org/eclipse/aether/named/ipc/IpcServer.java b/maven-resolver-named-locks-ipc/src/main/java/org/eclipse/aether/named/ipc/IpcServer.java
index 4eeeff7dd..1f8386f18 100644
--- a/maven-resolver-named-locks-ipc/src/main/java/org/eclipse/aether/named/ipc/IpcServer.java
+++ b/maven-resolver-named-locks-ipc/src/main/java/org/eclipse/aether/named/ipc/IpcServer.java
@@ -152,7 +152,7 @@ public class IpcServer {
         // also interrupt and kill the daemon.
         try {
             sun.misc.Signal.handle(new sun.misc.Signal("INT"), sun.misc.SignalHandler.SIG_IGN);
-            if (IpcClient.IS_WINDOWS) {
+            if (!IpcClient.IS_WINDOWS) {
                 sun.misc.Signal.handle(new sun.misc.Signal("TSTP"), sun.misc.SignalHandler.SIG_IGN);
             }
         } catch (Throwable t) {