So it looks like Pike's fork() will need to do some extra work for each /dev/poll fd...
Potentially fixed.
/ Henrik Grubbström (Lysator)
Previous text:
2004-04-02 13:44: Subject: Re: fatal poll error
Sorry; it's Solaris 9 / SPARC.
Errno 13 is usually EACCES. What are the permissions on /dev/poll?
They look ok to me too. The poll(7d) man page says the following about EACCESS:
EACCES A process does not have permission to access the con- tent cached in /dev/poll.
Oops, I missed the following segment:
The /dev/poll driver caches a list of polled file descrip- tors, which are specific to a process. Therefore, the /dev/poll file descriptor of a process will be inherited by its child process, just like any other file descriptors. But the child process will have very limited access through this inherited /dev/poll file descriptor. Any attempt to write or do ioctl by the child process will result in an EACCES error. The child process should close the inherited /dev/poll file descriptor and open its own if desired.
So it looks like Pike's fork() will need to do some extra work for each /dev/poll fd...
Bill
/ Henrik Grubbström (Lysator)