[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Bug with fcntl(n, F_SETOWN, getpid) with NPTL 0.34



> It is incorrect for a program to use the value of getpid() as the
> argument to F_SETOWN.  It should be using the value returned from the
> gettid() system call (tid (current->pid) != pid (current-tgid)).  (Yes
> the naming is very confusing).  Unfortunately this is not made easy
> (gettid() is not a libc function), and the man page is no longer
> correct when it says process id.

This is incorrect.  The kernel is what needs to be fixed.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]