netty5/common/src
Norman Maurer 9ade81ab5b Use system property to detect if root is running the program
Motivation:

We forked a new process to detect if the program is run by root. We should better just use user.name system property

Modifications:

- Change PlatformDependent.isRoot0() to read the user.name system property to detect if root runs the program and rename it to maybeSuperUser0().
- Rename PlatformDependent.isRoot() to maybeSuperUser() and let it init directly in the static block

Result:

Less heavy way to detect if the program is run by root.
2017-03-09 11:16:10 +01:00
..
main Use system property to detect if root is running the program 2017-03-09 11:16:10 +01:00
test UnorderedThreadPoolEventExecutor consumes 100% CPU when idle 2017-03-09 11:12:42 +01:00