summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp/getpid.cc
blob: ad634f1b832bd5db27fe9c5968680da3b554c01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "debug.h"
#include "sandbox_impl.h"

namespace playground {

int Sandbox::sandbox_getpid() {
  Debug::syscall(__NR_getpid, "Executing handler");
  return pid_;
}

} // namespace