summaryrefslogtreecommitdiff
path: root/src/writer.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-04-20 14:40:18 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-04-20 14:40:18 (GMT)
commit50eeab7d41466ec0360457b676271fb7a9337d16 (patch)
treed7bb6343ad38fa7b54af78c85420d357fd907a8e /src/writer.c
parentc8bc6703879da5a96dbc1319a07fa307cf1892f1 (diff)
added file_list waitpid function
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");