Hi Amaury, On Thu, Sep 5, 2013 at 4:42 PM, Amaury Bouchard <amaury@xxxxxxxxxx> wrote: > 2013/9/5 Paul Colomiets <paul@xxxxxxxxxxxxxx> >> >> I think it's too slow for the use case. But anyway how would you do >> that? Should socket pretend that it's a file? It's impossible to >> select/poll on file, so that kills the whole idea. > > > Honestly, I don't know. I wrote a basic filesystem during my studies 13 > years ago, and I would have been happy to use FUSE instead of hacking the > kernel. But I don't know FUSE that much. > Sockets prents to be files; even if you don't open them with open(), you can > use read/write/close system calls to handle them. AFAIK, only stat on pipes and sockets are checked. Data is never written to FS so doesn't sent through FUSE. > More, it seems that FUSE supports poll() => > http://www.cs.hmc.edu/~geoff/classes/hmc.cs135.201001/homework/fuse/fuse_doc.html#function-purposes > AFAICS, it's different kind of poll. But I wouldn't mind anybody try to do the work, may be I'm mistaken. -- Paul