Linux: set the process title (that shows in "ps" etc.) of renderers correctly when using the zygote.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/196009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25877 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/base.gyp b/base/base.gyp
index f6a71927..8c0ed39b 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -261,6 +261,8 @@
'scoped_variant_win.cc',
'scoped_variant_win.h',
'scoped_vector.h',
+ 'setproctitle_linux.c',
+ 'setproctitle_linux.h',
'sha2.cc',
'sha2.h',
'shared_memory.h',
@@ -398,8 +400,8 @@
'cflags': [
'-Wno-write-strings',
],
- 'link_settings': {
- 'libraries': [
+ 'link_settings': {
+ 'libraries': [
# We need rt for clock_gettime().
'-lrt',
],
@@ -424,7 +426,15 @@
'nss_init.h',
'time_posix.cc',
],
- }
+ },
+ ],
+ [ 'OS != "linux"', {
+ 'sources!': [
+ # Not automatically excluded by the *linux.cc rules.
+ 'setproctitle_linux.c',
+ 'setproctitle_linux.h',
+ ],
+ },
],
[ 'GENERATOR == "quentin"', {
# Quentin builds don't have a recent enough glibc to include the