lkml.org 
[lkml]   [2003]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: epoll vs stdin/stdout
Date
In article <20030707200315.GA10939@mail.jlokier.co.uk>,
Jamie Lokier <jamie@shareable.org> wrote:
>Unfortunately I cannot think of a way for a process to know, in
>general, whether two fds that it is passed correspond to the same file
>*. Well, apart from trying epoll on it and seeing what happens :/

fstat() and compare st_dev and st_ino

Mike.

-
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: 2005-03-22 13:46    [W:0.112 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site