Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2005 10:12:17 +0200
From:      "Norbert Koch" <NKoch@demig.de>
To:        "RJ45" <rj45@slacknet.com>, <freebsd-questions@freebsd.org>
Subject:   RE: daemon program.
Message-ID:  <000301c58b70$69d211e0$4801a8c0@ws-ew-3.W2KDEMIG>
In-Reply-To: <Pine.LNX.4.61.0507180043490.6815@slacknet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000301c58b70$69d211e0$4801a8c0>