readCommFile
private fn
void readCommFile(const char * path, ref char[256] nameBuffer) @nogc @trusted nothrowReads process name from /proc/<pid>/comm file.
This is a @trusted helper function that performs @system file I/O operations in a safe manner for use in @safe @nogc code.
Parameters
path | Path to the comm file. |
nameBuffer | Buffer to store the process name. |