Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89454

mac os core dump from detached process

From Robin Becker <robin@reportlab.com>
Subject mac os core dump from detached process
Date 2015-04-27 10:21 +0100
Newsgroups comp.lang.python
Message-ID <mailman.42.1430126505.3680.python-list@python.org> (permalink)

Show all headers | View raw


I'm using the double fork exec model as exemplified in

http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/

to run a django management command detached from any view. A database object is 
used to store/update information about the process. The command does have a log 
file and appears to work well on linux.

However, on my developer colleague's mac using the django development server the 
job ends suddenly without passing through the try except finally that's supposed 
to capture information.

I believe the only way it can do this is os._exit or an interrupt eg SIGSEGV etc 
etc.

Is it possible to get core dumps on the Mac for  debugging purposes? Would the 
detached process inherit flags etc etc from the starting process? I know little 
about OS X/Mach.
-- 
Robin Becker

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

mac os core dump from detached process Robin Becker <robin@reportlab.com> - 2015-04-27 10:21 +0100

csiph-web