[issue12304] expose signalfd(2) in the signal module

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: signalfd is very useful for event-driven frameworks like Twisted or asyncio. asyncio doesn't use it, and I didn't see any request to support it yet. asyncio uses signal.set_wakeup_fd() which looks to be enough, and it is now available on all platforms (includi

[issue12304] expose signalfd(2) in the signal module

2015-02-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue12304] expose signalfd(2) in the signal module

2013-09-01 Thread STINNER Victor
STINNER Victor added the comment: > Why do you not provide a structure to decode the bytes? I thought relying on ctypes in the stdlib was not advised... We should expose it. The ctypes was just a poof of concept. -- ___ Python tracker

[issue12304] expose signalfd(2) in the signal module

2013-08-31 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12304] expose signalfd(2) in the signal module

2013-08-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12304] expose signalfd(2) in the signal module

2012-05-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Patch seems good (although it doesn't apply cleanly). Why do you not provide a structure to decode the bytes? I thought relying on ctypes in the stdlib was not advised... -- nosy: +rosslagerwall ___ Python tracker

[issue12304] expose signalfd(2) in the signal module

2012-05-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor added the comment: #8407 changed the wakeup fd: it now contains the signal number. pthread_sigmask() is now part of Python 3.3 (see also #8407). signalfd() has advantages over the wakeup fd (msg103326): - it is handled in the kernel, the process is not interrupted. For example

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor added the comment: signalfd-4.patch: my more recent patch exposing signalfd(). It lacks a structure to decode the bytes read from the signalfd file descriptor. Example in ctypes (msg135438): class signalfd_siginfo(Structure): _fields_ = ( ('ssi_signo', c_uint32),

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread STINNER Victor
New submission from STINNER Victor : "Linux offers the signalfd syscall since 2.6.22 (with minor changes afterwards). This call allows signals to be handled as bytes read out of a file descriptor, rather than as interruptions to the flow of a program. Quite usefully, this file descriptor can