equal
deleted
inserted
replaced
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 */ |