tryExec() — netty Function Reference
Architecture documentation for the tryExec() function in NativeLibraryLoader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b8b7f986_a84f_3a12_d53b_c975f0075ed2["tryExec()"] e940cc67_3be6_5ff3_e560_4d68972dc13b["NativeLibraryLoader"] b8b7f986_a84f_3a12_d53b_c975f0075ed2 -->|defined in| e940cc67_3be6_5ff3_e560_4d68972dc13b 718b0b6c_05e8_e851_bc3f_0a119eac5245["tryPatchShadedLibraryIdAndSign()"] 718b0b6c_05e8_e851_bc3f_0a119eac5245 -->|calls| b8b7f986_a84f_3a12_d53b_c975f0075ed2 style b8b7f986_a84f_3a12_d53b_c975f0075ed2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java lines 342–359
private static boolean tryExec(String cmd) {
try {
int exitValue = Runtime.getRuntime().exec(cmd).waitFor();
if (exitValue != 0) {
logger.debug("Execution of '{}' failed: {}", cmd, exitValue);
return false;
}
logger.debug("Execution of '{}' succeed: {}", cmd, exitValue);
return true;
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
} catch (IOException e) {
logger.info("Execution of '{}' failed.", cmd, e);
} catch (SecurityException e) {
logger.error("Execution of '{}' failed.", cmd, e);
}
return false;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does tryExec() do?
tryExec() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java.
Where is tryExec() defined?
tryExec() is defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java at line 342.
What calls tryExec()?
tryExec() is called by 1 function(s): tryPatchShadedLibraryIdAndSign.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free