Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82975
b: refs/heads/master
c: 59714d6
h: refs/heads/master
i:
  82973: abcb38c
  82971: 373a1bc
  82967: f509326
  82959: 172d439
  82943: 2f1e9e6
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 5, 2008
1 parent 759cd84 commit 0657dad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ccf831cbee94df9c5006dd46248c0f07847dd7c
refs/heads/master: 59714d65dfbc86d5cb93adc5bac57a921cc2fa84
3 changes: 2 additions & 1 deletion trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,12 +947,13 @@ static void flush_old_files(struct files_struct * files)
spin_unlock(&files->file_lock);
}

void get_task_comm(char *buf, struct task_struct *tsk)
char *get_task_comm(char *buf, struct task_struct *tsk)
{
/* buf must be at least sizeof(tsk->comm) in size */
task_lock(tsk);
strncpy(buf, tsk->comm, sizeof(tsk->comm));
task_unlock(tsk);
return buf;
}

void set_task_comm(struct task_struct *tsk, char *buf)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ extern long do_fork(unsigned long, unsigned long, struct pt_regs *, unsigned lon
struct task_struct *fork_idle(int);

extern void set_task_comm(struct task_struct *tsk, char *from);
extern void get_task_comm(char *to, struct task_struct *tsk);
extern char *get_task_comm(char *to, struct task_struct *tsk);

#ifdef CONFIG_SMP
extern void wait_task_inactive(struct task_struct * p);
Expand Down

0 comments on commit 0657dad

Please sign in to comment.