]> granicus.if.org Git - fcron/commitdiff
no longer wait for every children of a file before removing it
authorthib <thib>
Thu, 5 Oct 2000 15:01:29 +0000 (15:01 +0000)
committerthib <thib>
Thu, 5 Oct 2000 15:01:29 +0000 (15:01 +0000)
conf.c

diff --git a/conf.c b/conf.c
index 1075a9bdcd3eec3bd9d10aa9067dbd008a6ffa79..436745267ef8f99dc758c9e671b57161ccc600ca 100644 (file)
--- 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++ )