From 4787a41b848903f5016e341797cc45faf5ca28c8 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 28 Jun 2009 19:55:35 +0200 Subject: [PATCH] Fix Process::MaybeShutdown's return type --- src/process.cc | 2 +- src/process.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.cc b/src/process.cc index 73af08d1db..5fe4810b8c 100644 --- a/src/process.cc +++ b/src/process.cc @@ -473,7 +473,7 @@ Process::Kill (int sig) return kill(pid_, sig); } -int +void Process::MaybeShutdown (void) { if (STDOUT_CLOSED && STDERR_CLOSED && got_chld_) { diff --git a/src/process.h b/src/process.h index 42ca29e6fd..951cf4d22c 100644 --- a/src/process.h +++ b/src/process.h @@ -36,7 +36,7 @@ class Process : EventEmitter { static void OnWritable (EV_P_ ev_io *watcher, int revents); static void OnCHLD (EV_P_ ev_child *watcher, int revents); - int MaybeShutdown (void); + void MaybeShutdown (void); void Shutdown (void); ev_io stdout_watcher_;