Fixes setproctitle breaking program_invocation_short_name on linux
setproctitle sets argv[0] to space delimited string which causes program_invocation_short_name to include all the switches until NULL delimiter. This prevents such breakage by making program_invocation_short_name point to a copy of the program name. BUG=chromium:1110865 TEST=content_unittests Change-Id: Iece5fa626e027a0145e7321cdbbda915f73b6c4f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2326511 Commit-Queue: Lei Zhang <thestig@chromium.org> Auto-Submit: Yuta Hijikata <ythjkt@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Lei Zhang <thestig@chromium.org> Reviewed-by:
Shuhei Takahashi <nya@chromium.org> Cr-Commit-Position: refs/heads/master@{#795558}
Showing
Please register or sign in to comment