| Store | Cart

Re: [Python-Dev] RFC: PEP 475, Retry system calls failing with EINTR

From: Antoine Pitrou <soli...@pitrou.net>
Mon, 1 Sep 2014 17:51:16 +0200
On Mon, 01 Sep 2014 11:47:07 -0400
"R. David Murray" <rdmu...@bitdance.com> wrote:
> > > > The two requirements are:> > > >  * Allow the application to react to signals immediately in the main> >    flow.> > You don't want to be writing your code in Python then.  In Python> you *never* get to react immediately to signals.  The interpreter> sets a flag and calls the python signal handler later.  Yes, the> call is ASAP, but ASAP is *not* "immediately".

Especially if the signal is delivered to another thread (which is
OS-dependent), and the main thread is blocked in *another* system
call ;-)

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Victor Stinner Aug 31, 2014 12:44 pm
Marko Rauhamaa Aug 31, 2014 03:19 pm
Victor Stinner Aug 31, 2014 08:59 pm
Marko Rauhamaa Aug 31, 2014 09:19 pm
Ethan Furman Aug 31, 2014 09:38 pm
Marko Rauhamaa Aug 31, 2014 10:15 pm
Antoine Pitrou Aug 31, 2014 10:37 pm
Victor Stinner Aug 31, 2014 10:45 pm
Greg Ewing Sep 01, 2014 07:15 am
Antoine Pitrou Sep 01, 2014 12:46 pm
Victor Stinner Aug 31, 2014 09:38 pm
Marko Rauhamaa Aug 31, 2014 10:04 pm
Victor Stinner Aug 31, 2014 10:36 pm
Greg Ewing Aug 31, 2014 10:28 pm
Dan Stromberg Sep 01, 2014 03:14 am
R. David Murray Sep 01, 2014 04:51 am
Marko Rauhamaa Sep 01, 2014 05:30 am
R. David Murray Sep 01, 2014 03:42 pm
Marko Rauhamaa Sep 01, 2014 03:59 pm
Victor Stinner Sep 01, 2014 07:27 am
Paul Moore Sep 01, 2014 06:12 am
Victor Stinner Sep 01, 2014 07:18 am
Marko Rauhamaa Sep 01, 2014 07:38 am
Charles-François Natali Sep 01, 2014 10:40 am
Marko Rauhamaa Sep 01, 2014 11:15 am
Charles-François Natali Sep 01, 2014 11:25 am
R. David Murray Sep 01, 2014 03:47 pm
Antoine Pitrou Sep 01, 2014 03:51 pm
Marko Rauhamaa Sep 01, 2014 04:00 pm
Antoine Pitrou Sep 01, 2014 12:58 pm
Matthew Woodcraft Sep 01, 2014 09:17 pm
Nick Coghlan Sep 02, 2014 12:23 pm
Matthew Woodcraft Sep 02, 2014 09:02 pm
Victor Stinner Sep 02, 2014 09:35 pm
Antoine Pitrou Sep 02, 2014 02:48 pm
Matthew Woodcraft Sep 02, 2014 09:03 pm
Victor Stinner Sep 02, 2014 09:40 pm
Matthew Woodcraft Sep 03, 2014 08:26 pm
Messages in this thread