diff options
| author | Prasanna Meda <pmeda@akamai.com> | 2005-01-11 03:18:08 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-11 03:18:08 -0800 |
| commit | bf36f91f08100b758a4f12811da05b9c1ce09c90 (patch) | |
| tree | 6bde96dc69c66ddb74b547c31ad38829681eaf62 /include | |
| parent | 88464d1b5a18ba983f6721c9b473215d2a0a6341 (diff) | |
[PATCH] easily tweakable comm length
This change still keeps the comm length at 16, but allows easier patching
for local modifications, and also introduces a macro to use instead of
magic 16, where sizeof(comm) is not preferable to use.
Not able to use killall, pidof etc. effectively, when long process names
are used for scripts. Just changing the command length from 16 to 32
breaks a.out coredump logic. Deamonise and get_task_comm helped in other
places in 2.6.10.
Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index dcc1814f97e8..96f69aaa0534 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -121,6 +121,9 @@ extern unsigned long nr_iowait(void); #define set_current_state(state_value) \ set_mb(current->state, (state_value)) +/* Task command name length */ +#define TASK_COMM_LEN 16 + /* * Scheduling policies */ @@ -612,7 +615,7 @@ struct task_struct { struct key *thread_keyring; /* keyring private to this thread */ #endif unsigned short used_math; - char comm[16]; + char comm[TASK_COMM_LEN]; /* file system info */ int link_count, total_link_count; /* ipc stuff */ |
