1
Index: src/content/common/set_process_title_linux.cc
2
===================================================================
3
--- src/content/common/set_process_title_linux.cc (revision 201630)
4
+++ src/content/common/set_process_title_linux.cc (working copy)
11
extern char** environ;
14
// Put the title in argv[0]. We have to zero out the space first since the
15
// kernel doesn't actually look for a null terminator unless we make the
16
// argument list longer than it started.
17
- avail_size = page_end - (uintptr_t) g_main_argv[0];
19
+ for (i = 0; g_main_argv[i]; ++i) {
20
+ avail_size += strlen(g_main_argv[i]) + 1;
23
memset(g_main_argv[0], 0, avail_size);
26
Index: src/content/common/set_process_title.cc
27
===================================================================
28
--- src/content/common/set_process_title.cc (revision 201630)
29
+++ src/content/common/set_process_title.cc (working copy)
31
// full command line is not being displayed in most process listings.
32
prctl(PR_SET_NAME, base::FilePath(title).BaseName().value().c_str());
33
#endif // defined(PR_SET_NAME)
35
+ // Limits the exe path part in the title
36
+ title = base::FilePath(title).BaseName().value().c_str();
38
#endif // defined(OS_LINUX)