lkml.org 
[lkml]   [2006]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2006-05-12 12:39    [W:0.136 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site