Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4192
| References | <mailman.974.1304041735.9059.python-list@python.org> <c63e7579-16d1-4bfa-8486-8ab791343dba@glegroupsg2000goo.googlegroups.com> |
|---|---|
| Date | 2011-04-30 18:17 +1000 |
| Subject | Re: Aborting Python from C code |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1015.1304151439.9059.python-list@python.org> (permalink) |
On Sat, Apr 30, 2011 at 6:08 PM, Miki Tebeka <miki.tebeka@gmail.com> wrote: >> In our sandboxed Python environment, I would like to be able to >> trigger an abort of the currently-running Python script (from a signal >> handler or another thread). > There's os.abort That core dumps the process; what I want is to force the PyRun_StringFlags to return. Normally PyErr_SetInterrupt will do exactly this (within a few instructions is fine), but the Python script is able to prevent that from happening, which I don't like. Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Aborting Python from C code Miki Tebeka <miki.tebeka@gmail.com> - 2011-04-30 01:08 -0700 Re: Aborting Python from C code Chris Angelico <rosuav@gmail.com> - 2011-04-30 18:17 +1000 Re: Aborting Python from C code Chris Angelico <rosuav@gmail.com> - 2011-05-04 19:02 +1000 newbie needs help with cookielib "Sells, Fred" <fred.sells@adventistcare.org> - 2011-05-04 13:16 -0400
csiph-web