blob: e5f816a9ba6424375e35b5b2fd2a8189e3e84576 [file] [log] [blame]
Avi Drissmane4622aa2022-09-08 20:36:061// Copyright 2013 The Chromium Authors
[email protected]992a60652013-07-15 18:29:352// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "base/process/process_handle.h"
6
7#include <unistd.h>
8
9namespace base {
10
11ProcessId GetCurrentProcId() {
12 return getpid();
13}
14
15ProcessHandle GetCurrentProcessHandle() {
16 return GetCurrentProcId();
17}
18
[email protected]992a60652013-07-15 18:29:3519ProcessId GetProcId(ProcessHandle process) {
20 return process;
21}
22
23} // namespace base