Mouse <mo...@rodents-montreal.org> wrote:
> > 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.)

Yes, there is clone(2) system call as well.  However, the actual problem
to solve is still the fact that multiple LWPs (whether they are processes
or pthreads) can concurrently perform the operations on a file descriptor.

-- 
Mindaugas

Reply via email to