If you fork a new process from an existing one, you will find that they share the same program name and command line. You can change the command line by changing the argv[0] in the program. But in this case, the string in task_struct char comm[TASK_COMM_LEN] will not change. But in /proc/[pid]/cmdline, you can find [...]
Posts Tagged ‘cmdline’
How to get cmdline of process
Posted in Tech, tagged cmdline on June 2, 2010 | Leave a Comment »