From 1a01b91e0729efa41d62fea12ac1a0c4714395cf Mon Sep 17 00:00:00 2001 From: thib Date: Thu, 5 Oct 2000 15:01:29 +0000 Subject: [PATCH] no longer wait for every children of a file before removing it --- conf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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++ ) -- 2.40.0