force coredump from child created by subprocess

  • Thread starter David Sveningsson
  • Start date
D

David Sveningsson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I am running a process using subprocess and detect if the process
crashes using .returncode. I would like to force coredumps being created
regardless of the system settings, eg run "ulimit -c unlimited" in the
childprocess.

I've had no luck using preexec_fn and os.system, it just made no
difference. I could probably add a thin wrapper script but I'm not very
fond of that idea.

Is there some easy way to force the childprocess to create a coredump if
it crashes?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyrFvEACgkQ6pa1H/H5pqVwDwCfRKDV+zCrnZUZSVN8eEYsMkFU
/UQAoNpjlM2l5jKViiqzSbRX6wZPDy6H
=7GDQ
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top