]> granicus.if.org Git - fcron/commitdiff
*** empty log message ***
authorthib <thib>
Sun, 11 Jul 2004 18:09:31 +0000 (18:09 +0000)
committerthib <thib>
Sun, 11 Jul 2004 18:09:31 +0000 (18:09 +0000)
database.c
doc/en/changes.sgml
doc/en/todo.sgml

index fecfefe9b44ca49c10121244ede24d68061d8c50..2970d402e754874f25581fc30f38fd366dc77f48 100644 (file)
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: database.c,v 1.71 2004-04-29 19:29:50 thib Exp $ */
+ /* $Id: database.c,v 1.72 2004-07-11 18:09:31 thib Exp $ */
 
 #include "fcron.h"
 
@@ -1268,12 +1268,14 @@ time_to_sleep(time_t lim)
     time_t tts = lim;
     time_t ti = time(NULL);
 
+    /* note : jobs in queue_base are sorted */
     if ( queue_base != NULL ) {
        if ( queue_base->j_line->cl_nextexe < lim )
            tts = queue_base->j_line->cl_nextexe;
     }
            
-    if ( (tts = tts - ti) < 0)
+    tts = tts - ti;
+    if ( tts < 0)
        tts = 0;
 
 /*      debug("Time to sleep: %lds", tts); */
index adc6c832640f08d5b5f6a019add96c8947d5ff44..43f31860c0fcb60c8db478416310df0175365301 100644 (file)
@@ -8,7 +8,7 @@ Foundation.
 A copy of the license is included in gfdl.sgml.
 -->
 
-<!-- $Id: changes.sgml,v 1.30 2004-04-29 19:38:52 thib Exp $ -->
+<!-- $Id: changes.sgml,v 1.31 2004-07-11 18:12:15 thib Exp $ -->
 
    <sect1 id="changes">
       <title>Changes</title>
@@ -40,7 +40,11 @@ A copy of the license is included in gfdl.sgml.
               Added a sanity check in set_nextexe() to avoid such things.</para>
         </listitem>
         <listitem>
-           <para></para>
+           <para>Fixed a small bug : scripts were supposing perl was in /usr/bin.</para>
+        </listitem>
+        <listitem>
+           <para>Fixed a bug which caused the pid of a child process
+              to be incorrectly read</para>
         </listitem>
       </itemizedlist>
 
index ad399a0600b0783c986358644b1dfc25e4723ce7..a80575789db11d0edff0c6c138afd3d4bf649171 100644 (file)
@@ -8,7 +8,7 @@ Foundation.
 A copy of the license is included in gfdl.sgml.
 -->
 
-<!-- $Id: todo.sgml,v 1.26 2004-04-29 20:51:25 thib Exp $ -->
+<!-- $Id: todo.sgml,v 1.27 2004-07-11 18:12:11 thib Exp $ -->
 
    <sect1 id="todo">
       <title>Todo</title>
@@ -29,15 +29,6 @@ A copy of the license is included in gfdl.sgml.
               <para>mails from B. Wohler : improve the doc + change (?)  the
                  name of fcrondyn -> fcronc ?? </para>
            </listitem>
-           <listitem>
-              <para>problem with daylight savings ? ("already running" ...)
-                 (cf. Nick's mails -- Warning : he has a new address))</para>
-           </listitem>
-           <listitem>
-              <para>add a new FAQ entry : what should be done to completely
-                 replace vixie cron by fcron ? Are there some incompatibilities
-                 ?</para>
-           </listitem>
            <listitem>
               <para>add an option to prevent fcron from running a job if the
                  system is running on battery (anacron does it ?)</para>
@@ -50,17 +41,15 @@ A copy of the license is included in gfdl.sgml.
            <listitem>
               <para>code cleaning : create a .c/.h file for data structures
                  (file/line lists, serial queue, lavg list, exe list),
-                 and work with them only through functions/macros.</para>
+                 and work with them only through functions/macros.
+              + secure equivalent to str[n]{cat|copy|...}</para>
               <para>Note : thoroughly check for bugs which can be introduced
                  during the code cleaning (make sure that after the
                  modification, the code executed is still the same as before
                  !).</para>
            </listitem>
            <listitem>
-              <para>Mem footprint reduction : for fcron processes which are aimed
-              at running sendmail, free() some memory (file/line lists, queues, ...)
-              (but does it worth it ? takes too much exe time for few memory ?)</para>
-              <para>Also use an/some union(s) in CL struct.</para>
+              <para>Mem footprint reduction : use an/some union(s) in CL struct.</para>
            </listitem>
            <listitem>
               <para>implement more commands for fcrondyn, and make it more
@@ -121,6 +110,7 @@ A copy of the license is included in gfdl.sgml.
                  different signals (-HUP, -TERM -STOP, .... or any other action
                  like sending a mail to sysadmin to alert him/her that a task
                  is taking too much time and that he has to have a look at it.)
+                 (add an option to specify the cmd, and combine w/ option until)
               </para>
            </listitem>
         </itemizedlist>