From: Thibault Godouet Date: Wed, 3 Jun 2026 22:50:30 +0000 (+0100) Subject: Fixed and improved descriptions of some of the internal 'options' (flags). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2279eac1f44d45c6b393cdd7e9e4ebc091fa5aac;p=thirdparty%2Ffcron.git Fixed and improved descriptions of some of the internal 'options' (flags). --- diff --git a/database.c b/database.c index 1762e61..ff516e5 100644 --- a/database.c +++ b/database.c @@ -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; } diff --git a/option.h b/option.h index 421a59a..6976e53 100644 --- a/option.h +++ b/option.h @@ -211,8 +211,8 @@ /* - 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)) @@ -271,6 +271,7 @@ /* + 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 */ @@ -283,8 +284,8 @@ /* - 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)) @@ -379,6 +380,7 @@ /* + 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 */