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().
Edited by William Edwards