Re: epoll vs stdin/stdout

From: Miquel van Smoorenburg (miquels@cistron.nl)
Date: Mon Jul 07 2003 - 15:18:45 EST


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/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:30 EST