Discussion:
[ast-developers] SIGPOLL support?
Lionel Cons
2013-06-10 11:40:59 UTC
Permalink
Is anyone here interested in SIGPOLL support in ksh93 (after the
.sh.sig support has been fixed), i.e. provide a way to open a fd with
O_ASYNC and listen to the SIGIO or SIGPOLL signals.

Lionel
Cedric Blancher
2013-06-12 17:06:20 UTC
Permalink
Post by Lionel Cons
Is anyone here interested in SIGPOLL support in ksh93 (after the
.sh.sig support has been fixed), i.e. provide a way to open a fd with
O_ASYNC and listen to the SIGIO or SIGPOLL signals.
I assume you know about the poll(1) builtin ksh93 now supports.

What's the purpose of SIGPOLL support? Trying to implement push
notification for socket I/O instead of pull via poll(1)?

Ced
--
Cedric Blancher <cedric.blancher at googlemail.com>
Institute Pasteur
Lionel Cons
2013-06-12 21:03:52 UTC
Permalink
Post by Cedric Blancher
Post by Lionel Cons
Is anyone here interested in SIGPOLL support in ksh93 (after the
.sh.sig support has been fixed), i.e. provide a way to open a fd with
O_ASYNC and listen to the SIGIO or SIGPOLL signals.
I assume you know about the poll(1) builtin ksh93 now supports.
Yes, sure. We use poll almost everywhere now
Post by Cedric Blancher
What's the purpose of SIGPOLL support? Trying to implement push
notification for socket I/O instead of pull via poll(1)?
Yes, albeit its useless to discuss or even try to implement until
signals work reliably and the traps are called in the order the
signals arrived.

Lionel
Cyrille Lefevre
2013-06-12 22:15:02 UTC
Permalink
Post by Cedric Blancher
Post by Lionel Cons
Is anyone here interested in SIGPOLL support in ksh93 (after the
.sh.sig support has been fixed), i.e. provide a way to open a fd with
O_ASYNC and listen to the SIGIO or SIGPOLL signals.
I assume you know about the poll(1) builtin ksh93 now supports.
What's the purpose of SIGPOLL support? Trying to implement push
notification for socket I/O instead of pull via poll(1)?
instead of make an active loop to see if there is something to read on
some fd, you may do anything you want until a SIGIO trap raise some
handler which know that there is something to read.

c'est plus clair maintenant ? :-)

Regards,

Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists at laposte.net
Loading...