Messages in this thread | | | Date | Fri, 12 May 2006 12:37:10 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Re: Linux poll() <sigh> again |
| |
> >I think that's the problem. A socket isn't a file-system and the >code won't set either bits if it isn't. Perhaps, the kernel code >needs to consider a socket as a virtual file of some kind?
I think they are a virtual file of some kind:
[root@mason ~]# ls -l /proc/4361/fd lrwx------ 1 root root 64 May 12 12:35 3 -> socket:[41460] lr-x------ 1 root root 64 May 12 12:35 4 -> pipe:[41496] l-wx------ 1 root root 64 May 12 12:35 5 -> pipe:[41496]
These "files" (socket:[] and pipe:[]) have a dentry in sockfs and pipefs (you can't mount the fss, but they are there, see /proc/filesystems)
Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |