From: Thibault Godouet Date: Thu, 5 Oct 2000 15:01:29 +0000 (+0000) Subject: no longer wait for every children of a file before removing it X-Git-Tag: ver2_9_4~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d8e1180ec68f3f8fd86c9e0a98c9e4ad4981765;p=thirdparty%2Ffcron.git no longer wait for every children of a file before removing it --- diff --git a/conf.c b/conf.c index 1075a9b..4367452 100644 --- a/conf.c +++ b/conf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: conf.c,v 1.23 2000-09-30 11:58:01 thib Exp $ */ + /* $Id: conf.c,v 1.24 2000-10-05 15:01:29 thib Exp $ */ #include "fcron.h" @@ -545,7 +545,11 @@ delete_file(const char *user_name) continue; } - wait_all(&file->cf_running); + for ( i = 0; i < exe_num; i++) + if ( exe_array[i].e_line->cl_file == file ) + /* we set the e_line to NULL, as so we know in wait_chld() + * and wait_all() the corresponding file has been removed */ + exe_array[i].e_line = NULL; /* free lavg queue entries */ for ( i = 0; i < lavg_num; i++ )