summaryrefslogtreecommitdiff
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/writer.c b/src/writer.c
index f5ce2d9..6fb723d 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -169,8 +169,6 @@ static int check_boundaries(writer_t* writer)
writer->next_ = file_list_add(&(writer->files_), &bd_time, "next", writer->name_format_, writer->output_dir_, writer->mode_);
if(writer->next_ == NULL) return -2;
-
- // TODO: waitpid for post processing scripts and remove file after it has finished
}
return 0;
@@ -192,7 +190,8 @@ static gpointer writer_thread_func(gpointer data)
int ret = check_boundaries(writer);
if(ret) break;
- // TODO: children handling (waitpid)
+ ret = file_list_waitpid(&(writer->files_));
+ if(ret) break;
}
log_printf(NOTICE, "writer thread stopped");