Re: [patch v2] epoll use a single inode ...

H. Peter Anvin
2007-03-06T02:38:14Z

Davide Libenzi wrote:
>
> Right now is using:
>
> this.len = sprintf(name, "[%u.%d]", current->pid, fd);
>
> That should be unique and not have the wraparound problem. Ack?
>

NAK, very much NAK.

File descriptors aren't file structures, they're *pointers* to file
structures.

It's perfectly possible -- downright common -- for a file descriptor to
be inherited by another process, and then the pid is recycled -- collision.

-hpa