gecko-dev/ipc/glue/SetProcessTitle.h
Jed Davis df9fa90f41 Bug 1851095 - Step 2: Connect setproctitle to the fork server. r=nika
This adds a small function that concatenates the args (because not
only does the BSD `setproctitle` take a single string, but also the
Linux kernel code that implements `/proc/{pid}/cmdline` won't allow the
"arguments" to extend past their original length unless it's a single
string), and connects it to the fork server.

Differential Revision: https://phabricator.services.mozilla.com/D187635
2023-09-22 03:41:39 +00:00

19 lines
596 B
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_ipc_SetProcessTitle_h
#define mozilla_ipc_SetProcessTitle_h
#include <string>
#include <vector>
namespace mozilla {
void SetProcessTitle(const std::vector<std::string>& aNewArgv);
void SetProcessTitleInit(char** aOrigArgv);
} // namespace mozilla
#endif // mozilla_ipc_SetProcessTitle_h