jglick commented on a change in pull request #612:
URL: https://github.com/apache/maven-mvnd/pull/612#discussion_r833233006



##########
File path: common/src/main/java/org/mvndaemon/mvnd/common/DaemonRegistry.java
##########
@@ -271,23 +271,35 @@ private void reset() {
     private static final int PROCESS_ID = getProcessId0();
 
     private static int getProcessId0() {
-        String pid = null;
-        try {
-            final Path self = Paths.get("/proc/self");
-            if (Files.exists(self)) {
-                pid = self.toRealPath().getFileName().toString();
+        if (Os.current() == Os.LINUX) {

Review comment:
       Not sure. https://en.wikipedia.org/wiki/Procfs claims it was removed 
from OpenBSD. Anyway IIUC this code can be simplified when dropping Java 8 
support? (Or perhaps now, if you use reflection?)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to