summaryrefslogtreecommitdiffstats
path: root/content/common/send_zygote_child_ping_linux.cc
blob: f3cfcbce299202e798d776469f1463f27d97409e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2014 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 "content/public/common/send_zygote_child_ping_linux.h"

#include <vector>

#include "base/posix/unix_domain_socket_linux.h"
#include "content/common/zygote_commands_linux.h"

namespace content {

bool SendZygoteChildPing(int fd) {
  return base::UnixDomainSocket::SendMsg(fd,
                                         kZygoteChildPingMessage,
                                         sizeof(kZygoteChildPingMessage),
                                         std::vector<int>());
}

}  // namespace content