]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
Fixed and improved descriptions of some of the internal 'options' (flags).
authorThibault Godouet <yo8192@users.noreply.github.com>
Wed, 3 Jun 2026 22:50:30 +0000 (23:50 +0100)
committerThibault Godouet <yo8192@users.noreply.github.com>
Wed, 3 Jun 2026 22:51:02 +0000 (23:51 +0100)
database.c
option.h

index 1762e61e3552007d85018bb56c959ef51fa64723..ff516e599e04b8b4d36a2b46a9dd421a92d20c81 100644 (file)
@@ -388,7 +388,7 @@ add_serial_job(cl_t *line, int info_fd)
      * (we consider serial jobs currently running as in the queue) */
     if ((is_serial_sev(line->cl_option) && line->cl_numexe >= UCHAR_MAX) ||
         (!is_serial_sev(line->cl_option) && line->cl_numexe > 0)) {
-        send_msg_fd_debug(info_fd, "already in serial queue '%s'",
+        send_msg_fd_debug(info_fd, "already in serial queue (or running) '%s'",
                           line->cl_shell);
         return;
     }
index 421a59a2003ddc3af8dd5a10564adcf36c4b7209..6976e5352f54968c34b144c8787277af11cbd807 100644 (file)
--- a/option.h
+++ b/option.h
 
 
 /*
-  bit 6 : set to 1 : job is being serialized once
-          set to 0 : job is not being serialized once
+  bit 6 : set to 1 : job is being serialized as a one-off
+          set to 0 : job is not being serialized as a one-off
 */
 #define        is_serial_once(opt) \
        (_bit_test(opt, 6))
 
 
 /*
+  WARNING: inverted bit (set_() clears the bit, and clear_() sets the bit)
   bit 11 : set to 1 : can only be put once in serial queue simultaneously
            set to 0 : can be put several times in serial queue simultaneously
 */
 
 
 /*
-  bit 12 : set to 1 : can only be put once in lavg queue simultaneously
-           set to 0 : can be put several times in lavg queue simultaneously
+  bit 12 : set to 1 : can be put several times in lavg queue simultaneously
+           set to 0 : can only be put once in lavg queue simultaneously
 */
 #define        is_lavg_sev(opt) \
        (_bit_test(opt, 12))
 
 
 /*
+  WARNING: inverted bit (set_() clears the bit, and clear_() sets the bit)
   bit 20 : set to 1 : let the job in the %-queue if interval is exceeded
            set to 0 : remove %-job from lavg queue if interval is exceeded
 */