diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 01:47:01 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 01:47:01 +0000 |
commit | 75e10302d5eb778d012a2c8b054bef8f1a67193a (patch) | |
tree | 68107e4e1e736c7cde95e22bab0be4610a0d35c2 /base/setproctitle_linux.c | |
parent | d144b0590e00629570c3f729b1d0baf048dc1d45 (diff) | |
download | chromium_src-75e10302d5eb778d012a2c8b054bef8f1a67193a.zip chromium_src-75e10302d5eb778d012a2c8b054bef8f1a67193a.tar.gz chromium_src-75e10302d5eb778d012a2c8b054bef8f1a67193a.tar.bz2 |
linux: drop linux-specific CommandLine function
We can just call this from the appropriate constructor internally.
Review URL: http://codereview.chromium.org/271051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/setproctitle_linux.c')
-rw-r--r-- | base/setproctitle_linux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/setproctitle_linux.c b/base/setproctitle_linux.c index 3544d3e..9924c99 100644 --- a/base/setproctitle_linux.c +++ b/base/setproctitle_linux.c @@ -104,6 +104,9 @@ void setproctitle(const char* fmt, ...) { // A version of this built into glibc would not need this function, since // it could stash the argv pointer in __libc_start_main(). But we need it. void setproctitle_init(char** main_argv) { + if (g_main_argv) + return; + uintptr_t page_size = sysconf(_SC_PAGESIZE); // Check that the argv array is in fact on the same page of memory // as the environment array just as an added measure of protection. |