Linux: use readlink() and prctl() in SetProcTitle() to fix "exe" showing in process listings.
BUG=29118
TEST=none
Review URL: http://codereview.chromium.org/490028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35441 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/setproctitle_linux.h b/base/setproctitle_linux.h
index 32cc297..c1cf6896 100644
--- a/base/setproctitle_linux.h
+++ b/base/setproctitle_linux.h
@@ -11,7 +11,9 @@
// Set the process title that will show in "ps" and similar tools. Takes
// printf-style format string and arguments. After calling setproctitle()
-// the original main() argv[] array should not be used.
+// the original main() argv[] array should not be used. By default, the
+// original argv[0] is prepended to the format; this can be disabled by
+// including a '-' as the first character of the format string.
void setproctitle(const char* fmt, ...);
// Initialize state needed for setproctitle() on Linux. Pass the argv pointer