dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions
Executable name handling
Collaboration diagram for Executable name handling:

Functions

char * dpkg_get_pid_execname (pid_t pid)
 Get the executable name for a PID.
 

Detailed Description

Function Documentation

◆ dpkg_get_pid_execname()

char * dpkg_get_pid_execname ( pid_t  pid)

Get the executable name for a PID.

Tries to obtain the executable name or process name for a specific PID, if the executable name cannot be obtained then it will return NULL.

Returns
A pointer to an allocated string with the executable name, or NULL.

References file_slurp(), m_strdup(), varbuf_detach(), and VARBUF_INIT.

Referenced by file_lock().

Here is the call graph for this function:
Here is the caller graph for this function: