mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 13:15:27 +00:00
Remove warning about unsupported TSTP signal on windows
This commit is contained in:
@@ -56,6 +56,7 @@ import org.mvndaemon.mvnd.common.Message;
|
||||
import org.mvndaemon.mvnd.common.Message.BuildException;
|
||||
import org.mvndaemon.mvnd.common.Message.BuildRequest;
|
||||
import org.mvndaemon.mvnd.common.Message.BuildStarted;
|
||||
import org.mvndaemon.mvnd.common.Os;
|
||||
import org.mvndaemon.mvnd.daemon.DaemonExpiration.DaemonExpirationResult;
|
||||
import org.mvndaemon.mvnd.daemon.DaemonExpiration.DaemonExpirationStrategy;
|
||||
import org.mvndaemon.mvnd.logging.smart.AbstractLoggingSpy;
|
||||
@@ -103,7 +104,9 @@ public class Server implements AutoCloseable, Runnable {
|
||||
// also interrupt and kill the daemon.
|
||||
try {
|
||||
Signal.handle(new Signal("INT"), SignalHandler.SIG_IGN);
|
||||
Signal.handle(new Signal("TSTP"), SignalHandler.SIG_IGN);
|
||||
if (Os.current() != Os.WINDOWS) {
|
||||
Signal.handle(new Signal("TSTP"), SignalHandler.SIG_IGN);
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
LOGGER.warn("Unable to ignore INT and TSTP signals", t);
|
||||
}
|
||||
|
Reference in New Issue
Block a user