>> Well, you need to open it first, before you can to ioctl, and if >> only one process can open it, only one process can ioctl it, right? > Wrong.
Agreed. > Multiple threads can ioctl and nobody prevents one from having a > single process with multiple threads (pthreads, if you like). Not only that, but even without threading, there are at least two ways I can think of offhand that a file descriptor, once opened, can end up in multiple processes' open file tables: fork() and SCM_RIGHTS. (There are probably others, too.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML mo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B