Hello,
Tru64
UNIX 'man atexit' writes among others: "It is not recommended to call
exit() from within an atexit handler." I wonder that exit() was called for some
reason before. All the messages you see is duplicated because the final_dump()
is called now in a loop. Is the mkstemp() reentrant
function?
Or you
may exceeded the FOPEN_MAX or STREAM_MAX limits, and the fdopen() forget to
set the errno = EMFILE.
Of
course nothing is sure I am just thinking loudly.
Bests,
Attila
Geez, I can't keep milter-greylist running for more then ten minutes this morning. It starts into the "Milter read(greylist): timeout before data read" almost at once after I start it.I put that code in, here's what I got:Oct 28 08:10:31 hns1 milter-greylist: [ID 799890 mail.info] dumpfd = 15
Oct 28 08:15:39 hns1 milter-greylist: [ID 799890 mail.info] dumpfd = 348
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd = 348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd = 348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd = 348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 180808 mail.error] dumpfd = 348, dump = 0, errno = 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 525239 mail.error] cannot write dumpfile "/var/milter-greylist/greylist.db-XXG7aOsh": Error 0
Oct 28 08:15:39 hns1 milter-greylist: [ID 421540 mail.info] Final database dump: no change to dump
Oct 28 08:15:39 hns1 milter-greylist: [ID 146194 mail.info] Exitting