Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: chrome/app/shutdown_signal_handlers_posix.h

Issue 2729633002: mash: Cleanly exit on SIGTERM, SIGINT, SIGHUP (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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 #ifndef CHROME_APP_SHUTDOWN_SIGNAL_HANDLERS_POSIX_H_
6 #define CHROME_APP_SHUTDOWN_SIGNAL_HANDLERS_POSIX_H_
7
8 #include "base/callback_forward.h"
9 #include "base/memory/ref_counted.h"
10
11 namespace base {
12 class SingleThreadTaskRunner;
13 }
14
15 // Runs a background thread that installs signal handlers to watch for shutdown
16 // signals like SIGTERM, SIGINT and SIGTERM. |shutdown_callback| is invoked on
17 // |task_runner| which is usually the main thread's task runner.
18 void InstallShutdownSignalHandlers(
19 const base::Closure& shutdown_callback,
20 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
21
22 #endif // CHROME_APP_SHUTDOWN_SIGNAL_HANDLERS_POSIX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698