ipc/glue/ProcessUtils_linux.cpp

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:a207933fa098
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include "ProcessUtils.h"
6
7 #include "nsString.h"
8
9 #include <sys/prctl.h>
10
11 namespace mozilla {
12 namespace ipc {
13
14 void SetThisProcessName(const char *aName)
15 {
16 prctl(PR_SET_NAME, (unsigned long)aName, 0uL, 0uL, 0uL);
17 }
18
19 } // namespace ipc
20 } // namespace mozilla

mercurial