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

Re: Failure of fcntl(F_SETOWN).



torsdag den  7 november 2013 klockan 21:57 skrev Petr Salinger detta:
>> it appears as if kFreeBSD is not able to set owners
>> of file descriptors. My kernel is 9.0-2-amd64 and
>> libc is 2.13-38, from the Wheezy release.
>
> There is a "typo" in our <bits/fcntl.h> header.
> It should be
>
> #if defined __USE_BSD || defined __USE_UNIX98
> # define F_GETOWN       5       /* Get owner of socket (receiver of SIGIO).  */
> # define F_SETOWN       6       /* Set owner of socket (receiver of SIGIO).  */
> #endif

Manually changing this on my machine does indeed restore the expected
functionality, and more importantly, also restores the ability to
trigger SIGURG properly on a TCP socket. This latter defect was my
original concern.

Best regards,
  Mats E A


Reply to: