]> granicus.if.org Git - fcron/commitdiff
Fixed some gcc warnings (first char of string array referenced as var instead of...
authorthib <thib@berseker.(none)>
Tue, 8 Dec 2009 22:30:11 +0000 (22:30 +0000)
committerthib <thib@berseker.(none)>
Tue, 8 Dec 2009 22:30:11 +0000 (22:30 +0000)
doc/en/todo.sgml
fileconf.c
read_string.c

index 452eb32ce941fc0db9ca49d357c18f77d22fc2fc..a133fafd2f1aa463dab848edb42eb659b764f85a 100644 (file)
@@ -24,6 +24,18 @@ A copy of the license is included in gfdl.sgml.
       <sect2>
         <title>High priority</title>
         <itemizedlist>
+           <listitem>
+              <para>option to put a maximum limit on the execution time of a task + terminate it if not finished yet + send email to let the user know</para>
+           </listitem>
+                   <listitem>
+              <para>@reboot: don't run the job the first time it is loaded by fcron after having been created -- otherwise we can't use fcron as a 'rc' start/stop script for users without root privileges</para>
+           </listitem>
+           <listitem>
+              <para>jitter feature: if 100 jobs to be started at the same minute, then make them start at a random second of that minute to limit load spikes (see BSD cron jitter feature)</para>
+           </listitem>
+           <listitem>
+              <para>setting to limit the number of jobs of a single user in the serialq/lavgq to X jobs + make sure root always has Y slots that it can use in those queues (i.e. number of slots used by root + number of free slots >= Y)</para>
+           </listitem>
            <listitem>
               <para>Test (and use ?) docbook2x-man -- xlstproc ? cf http://antoine.ginies.free.fr/docbook/ch09.html</para>
            </listitem>
@@ -129,4 +141,4 @@ mode: sgml
 sgml-parent-document:("fcron-doc.sgml" "book" "chapter" "sect1" "")
 End:
 -->
-   
\ No newline at end of file
+   
index cfa3be4cfd385e9daf490fc93b5582a3777d9f9b..8a7842f1e1c8f32a3535b5164b49f1541a3a17e3 100644 (file)
@@ -297,7 +297,7 @@ read_env(char *ptr, cf_t *cf)
     }
     name[j] = '\0';
 
-    if ( name == '\0' )
+    if ( name[0] == '\0' )
        goto error;
 
     /* skip '=' and spaces around */
index e2bca961ac6cfede840f0a64091492adb1db0c07..8d122285917208ea55848c9c240f7c2544f82db3 100644 (file)
@@ -86,7 +86,7 @@ char *read_string(int echo, const char *prompt)
            } else {
                line[nc] = '\0';
            }
-           input = ( (line) ? strdup(line):NULL );
+           input = ( (line[0]) ? strdup(line):NULL );
            Overwrite(line);
 
            return input;                  /* return malloc()ed string */