Add -l option to show full command line (fixes #23)
This commit is contained in:
@@ -225,7 +225,11 @@ Process *getProcess(unsigned long inode, const char *devicename) {
|
||||
if (proc != NULL)
|
||||
return proc;
|
||||
|
||||
Process *newproc = new Process(inode, devicename, node->name.c_str());
|
||||
// extract program name and command line from data read from cmdline file
|
||||
const char *prgname = node->cmdline.c_str();
|
||||
const char *cmdline = prgname + strlen(prgname) + 1;
|
||||
|
||||
Process *newproc = new Process(inode, devicename, prgname, cmdline);
|
||||
newproc->pid = node->pid;
|
||||
|
||||
char procdir[100];
|
||||
|
||||
Reference in New Issue
Block a user