aboutsummaryrefslogtreecommitdiff
path: root/brillo/process_reaper.h
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/process_reaper.h')
-rw-r--r--brillo/process_reaper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/brillo/process_reaper.h b/brillo/process_reaper.h
index 7b70a8d..4e348a3 100644
--- a/brillo/process_reaper.h
+++ b/brillo/process_reaper.h
@@ -19,7 +19,7 @@ namespace brillo {
class BRILLO_EXPORT ProcessReaper final {
public:
// The callback called when a child exits.
- using ChildCallback = base::Callback<void(const siginfo_t&)>;
+ using ChildCallback = base::OnceCallback<void(const siginfo_t&)>;
ProcessReaper() = default;
~ProcessReaper();
@@ -41,7 +41,7 @@ class BRILLO_EXPORT ProcessReaper final {
// as a siginfo_t. See wait(2) for details about siginfo_t.
bool WatchForChild(const base::Location& from_here,
pid_t pid,
- const ChildCallback& callback);
+ ChildCallback callback);
// Stop watching child process |pid|. This is useful in situations
// where the child process may have been reaped outside of the signal