This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
PR_SET_NAME (since Linux 2.6.9)
Set the process name for the calling process, using the value in
the location pointed to by (char *) arg2. The name can be up to 16
bytes long, and should be null terminated if it contains fewer
bytes.
but it isn't correct. PR_SET_NAME change thread name, but process name.
More unfortunately, it only change task->comm. not change arg[0]. Thus, some command display wrong name... (ps can display both, switched by command line option)
So, we shouldn't use it.
Perhapls, I can make new syscall (or new prctl type). but I don't know why the user want to change process title. Do you have the any information?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |