OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 // | |
5 // This file implements a signal handler that is used to safely handle SIGHUP | |
6 // and trigger the specified callback. It is currently used on Mac in order to | |
7 // reload the me2me host configuration, but would need minimal changes on Linux. | |
8 | |
9 #ifndef REMOTING_HOST_SIGHUP_LISTENER_MAC_H_ | |
10 #define REMOTING_HOST_SIGHUP_LISTENER_MAC_H_ | |
11 | |
12 #include "base/callback_forward.h" | |
13 | |
14 namespace remoting { | |
15 | |
16 // Register for SIGHUP notifications on the current thread, which must have | |
17 // an associated MessageLoopForIO. | |
18 bool RegisterHupSignalHandler(const base::Closure& callback); | |
19 | |
20 } // namespace remoting | |
21 | |
22 #endif // REMOTING_HOST_SIGHUP_LISTENER_MAC_H_ | |
OLD | NEW |