diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-04-20 14:40:18 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-04-20 14:40:18 (GMT) |
commit | 50eeab7d41466ec0360457b676271fb7a9337d16 (patch) | |
tree | d7bb6343ad38fa7b54af78c85420d357fd907a8e /src/writer.c | |
parent | c8bc6703879da5a96dbc1319a07fa307cf1892f1 (diff) |
added file_list waitpid function
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 5 |
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"); |