1
Index: src/content/common/set_process_title.cc
2
===================================================================
3
--- src/content/common/set_process_title.cc (revision 158531)
4
+++ src/content/common/set_process_title.cc (working copy)
6
// full command line is not being displayed in most process listings.
7
prctl(PR_SET_NAME, FilePath(title).BaseName().value().c_str());
8
#endif // defined(PR_SET_NAME)
10
+ // Limits the exe path part in the title
11
+ title = FilePath(title).BaseName().value().c_str();
13
#endif // defined(OS_LINUX)
15
Index: src/content/common/set_process_title_linux.cc
16
===================================================================
17
--- src/content/common/set_process_title_linux.cc (revision 158531)
18
+++ src/content/common/set_process_title_linux.cc (working copy)
25
extern char** environ;
32
// Put the title in argv[0]. We have to zero out the space first since the
33
// kernel doesn't actually look for a null terminator unless we make the
34
// argument list longer than it started.
35
- avail_size = page_end - (uintptr_t) g_main_argv[0];
37
+ for (i = 0; g_main_argv[i]; ++i) {
38
+ avail_size += strlen(g_main_argv[i]) + 1;
41
memset(g_main_argv[0], 0, avail_size);
b'\\ No newline at end of file'