readCommFile

private fnvoid readCommFile(const char * path, ref char[256] nameBuffer) @nogc @trusted nothrow

Reads 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

pathPath to the comm file.
nameBufferBuffer to store the process name.