diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-03 02:20:08 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-03 02:20:08 +0000 |
commit | f07bd1ecc85ac808de4efec5ba8a0f7372cfa694 (patch) | |
tree | 3b3a0a6f55f53fdcc731810c274fba78578acdb2 /base/setproctitle_linux.h | |
parent | a88f9709ca82ecf4a2d6a95972d18b921b98c6af (diff) | |
download | chromium_src-f07bd1ecc85ac808de4efec5ba8a0f7372cfa694.zip chromium_src-f07bd1ecc85ac808de4efec5ba8a0f7372cfa694.tar.gz chromium_src-f07bd1ecc85ac808de4efec5ba8a0f7372cfa694.tar.bz2 |
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
Diffstat (limited to 'base/setproctitle_linux.h')
-rw-r--r-- | base/setproctitle_linux.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |