I'm porting some code to OpenVMS and have stumbled upon a limitation.
There is a poll()
function checking an array of sockets for events, but unfortunately, one of the file descriptors is created via pipe()
function.
This is then causing a problem and poll()
returns with errno = ENOTSOCK
.
Reason for pipes file descriptor is to intentionally interrupt/cancel poll()
by writing a single byte to its input side.
Is there a way how to create something similar to pipe but with sockets?
Thanks and regards.