mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] comments on locking of task->comm
Add some comments about task->comm, to explain what it is near its definition and provide some important pointers to its uses. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
291c4a75ce
commit
3677209239
2 changed files with 8 additions and 3 deletions
|
@ -869,9 +869,11 @@ int flush_old_exec(struct linux_binprm * bprm)
|
|||
if (current->euid == current->uid && current->egid == current->gid)
|
||||
current->mm->dumpable = 1;
|
||||
name = bprm->filename;
|
||||
|
||||
/* Copies the binary name from after last slash */
|
||||
for (i=0; (ch = *(name++)) != '\0';) {
|
||||
if (ch == '/')
|
||||
i = 0;
|
||||
i = 0; /* overwrite what we wrote */
|
||||
else
|
||||
if (i < (sizeof(tcomm) - 1))
|
||||
tcomm[i++] = ch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue