[Python-ideas] Responsive signal handling
cs at zip.com.au
Tue Jun 23 06:37:46 CEST 2015
On 22Jun2015 16:53, Paul Moore <p.f.moore at gmail.com> wrote:
>On 22 June 2015 at 09:42, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
>> On Mon, Jun 22, 2015 at 12:52 AM, Cameron Simpson <cs at zip.com.au> wrote:
>>> On 21Jun2015 19:16, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
>>>> This is not possible in general, but it can be made to work for all
>>>> blocking operations in the stdlib.
>>> Hmm. I'm not sure that you will find this universally so. No, I have no
>>> examples proving my intuition here.
>> If you fix select, everything else can hypothetically follow, as you
>> can run all C functions in another thread and signal the result is
>> ready using an fd. (This is my idea for a hacky third-party library.
>> It only ruins stack traces!)
>This particular approach presumably only works on Unix? (On Windows,
>select is not a general signalling operation, it only works for
>sockets). Presumably a cross-platform solution would need to use
>appropriate OS-native signalling based on the platform?
Cameron Simpson <cs at zip.com.au>
The thought of suicide is a comforting one, for with it has come a calm
passage through many a bad night. - Fred Nieztsche
More information about the Python-ideas