We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a9f694 commit dd17ca2Copy full SHA for dd17ca2
components/cli/src/main/java/datadog.cli/CLIHelper.java
@@ -31,7 +31,6 @@ private static List<String> initJvmArgs() {
31
// If linux OS, use procfs
32
// TODO: equals, or contains?
33
if (System.getProperty("os.name").equalsIgnoreCase("linux")) {
34
- // Get the current process PID from /proc/self/status
35
try {
36
// Get the JVM arguments from /proc/self/cmdline
37
return getJvmArgsFromProcCmdline();
@@ -89,7 +88,6 @@ private static List<String> initJvmArgs() {
89
88
}
90
91
private static List<String> getJvmArgsFromProcCmdline() throws IOException {
92
- // Read /proc/[pid]/cmdline to get JVM arguments
93
BufferedReader argsReader = new BufferedReader(new FileReader("/proc/self/cmdline"));
94
String cmdLine = argsReader.readLine();
95
if (cmdLine != null) {
0 commit comments