summaryrefslogtreecommitdiff
path: root/src/childinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/childinfo.c')
-rw-r--r--src/childinfo.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/childinfo.c b/src/childinfo.c
index 85adfe2f6..cae73fe46 100644
--- a/src/childinfo.c
+++ b/src/childinfo.c
@@ -127,21 +127,9 @@ void receiveChildInfo(void) {
int process_type;
int on_exit;
size_t cow_size;
- if (readChildInfo(&process_type, &on_exit, &cow_size)) {
- updateChildInfo(process_type, on_exit, cow_size);
- }
-}
-
-/* Receive last COW data from child. */
-void receiveLastChildInfo(void) {
- if (server.child_info_pipe[0] == -1) return;
-
- /* Drain the pipe and update child info */
- int process_type;
- int on_exit;
- size_t cow_size;
- while (readChildInfo(&process_type, &on_exit, &cow_size) > 0) {
+ /* Drain the pipe and update child info so that we get the final message. */
+ while (readChildInfo(&process_type, &on_exit, &cow_size)) {
updateChildInfo(process_type, on_exit, cow_size);
}
}