On AIX 7 I have a process whose name appears between square brackets in the ps output:
PID TTY TIME CMD
7798784 pts/2 0:00 [myproc]
9044154 pts/2 0:00 ps
10485770 pts/2 0:00 bash
I found that overwriting argv[0][0]
leads to such a result. Is there any other reasons which could lead to this result?