On Tue, 2006-02-14 at 10:41 +1300, Daniel Swarbrick wrote:
> I just tested Armin's recent patch to allow non-root OpenPBX to generate
> a core dump - the good news is that openpbx running non-root can now
> coredump, however I've only managed to do this when it is not detached
> from the console. If I run it as root, detached, the core is dump in the
> root directory. Obviously the openpbx user will no have permission to
> write to this directory, so when running non-root, detached, I don't get
> a coredump.
> 
> Is there a way to specify where cores should be dumped? I thought they
> usually were dumped to /tmp.

Cores are dumped wherever the system thinks that the process's current
directory is.  Usually that is the directory that the process is started
in.  Try cd'ing to /tmp before starting openpbx and see if you get a
core in /tmp.  It'd be easy enough to add a call to chdir("/tmp")
somewhere in the code (or maybe another directory that's owned by the
openpbx user).

Jeff

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Openpbx-dev mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-dev

Reply via email to