Skip to content

Handle required logic for email before handling concurrent process locking logic

When a cron is locked, fatal() is called before ERRCOUNTF and TUXIS_PROGRAM_NAME are set. fatal() calls func_end(), which calls func_sendmail(), which tries to do stuff with ERRCOUNTF and TUXIS_PROGRAM_NAME.

Fixed by setting ERRCOUNTF and TUXIS_PROGRAM_NAME before the locking logic calls fatal().

Closes https://gitlab.tuxis.nl/mark/tuxis-cron/-/issues/4

Edited by William Edwards

Merge request reports