jdk/src/java.base/linux/native/libjava/ProcessHandleImpl_linux.c
changeset 40179 b5d59a6f093a
parent 32517 47fa336854c3
equal deleted inserted replaced
40178:3f999ca3774e 40179:b5d59a6f093a
   144      * Stat /proc/<pid> to get the user id
   144      * Stat /proc/<pid> to get the user id
   145      */
   145      */
   146     snprintf(fn, sizeof fn, "/proc/%d", pid);
   146     snprintf(fn, sizeof fn, "/proc/%d", pid);
   147     if (stat(fn, &stat_buf) == 0) {
   147     if (stat(fn, &stat_buf) == 0) {
   148         unix_getUserInfo(env, jinfo, stat_buf.st_uid);
   148         unix_getUserInfo(env, jinfo, stat_buf.st_uid);
       
   149         JNU_CHECK_EXCEPTION(env);
   149     }
   150     }
   150 
   151 
   151     /*
   152     /*
   152      * Try to open /proc/<pid>/cmdline
   153      * Try to open /proc/<pid>/cmdline
   153      */
   154      */