Message297668
> To be able to use GPIO Sysfs Interface on our embedded platforms we require exceptional event support.
Antoine Pitrou noticed that "exception" term can be confusion in Python, since exceptions are like "raise ValueError(...)".
The manual page mentions "out-of-band (OOB) data".
http://man7.org/linux/man-pages/man2/select_tut.2.html
exceptfds
This set is watched for "exceptional conditions". In
practice, only one such exceptional condition is common: the
availability of out-of-band (OOB) data for reading from a TCP
socket. See recv(2), send(2), and tcp(7) for more details
about OOB data. (One other less common case where select(2)
indicates an exceptional condition occurs with pseudoterminals
in packet mode; see ioctl_tty(2).) After select() has
returned, exceptfds will be cleared of all file descriptors
except for those for which an exceptional condition has
occurred.
Is it what you need for a GPIO? GPIO is unrelated to TCP, right? |
|
Date |
User |
Action |
Args |
2017-07-04 15:02:30 | vstinner | set | recipients:
+ vstinner, neologix, yselivanov, pklanke |
2017-07-04 15:02:30 | vstinner | set | messageid: <1499180550.64.0.35465280866.issue30844@psf.upfronthosting.co.za> |
2017-07-04 15:02:30 | vstinner | link | issue30844 messages |
2017-07-04 15:02:30 | vstinner | create | |
|