From f07bd1ecc85ac808de4efec5ba8a0f7372cfa694 Mon Sep 17 00:00:00 2001 From: "mdm@chromium.org" Date: Sun, 3 Jan 2010 02:20:08 +0000 Subject: 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 --- base/setproctitle_linux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'base/setproctitle_linux.h') diff --git a/base/setproctitle_linux.h b/base/setproctitle_linux.h index 32cc297..c1cf689 100644 --- a/base/setproctitle_linux.h +++ b/base/setproctitle_linux.h @@ -11,7 +11,9 @@ extern "C" { // 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 -- cgit v1.1