daemon program.

Norbert Koch NKoch at demig.de
Mon Jul 18 07:16:21 GMT 2005


> Hello,
> I did a daemon program which uses sendmail milter.
> I would like the program to make a core file when it crashes.
> from time to time the daemon dies and I Am not able to find out why.
> If I had a core file I could use the debugger.
> Is there any way to tell hte program to die with a core dump in FreeBSD ?

Why don't you let your program start and then attach gdb to it.
Or just make periodic core dumps using gcore(1) to be able to
inspect your program's current state.

Norbert



More information about the freebsd-questions mailing list