I am trying to port an application to Linux and am having trouble when
I go to set the process group ( i.e. ioctl( sd, SIOCSPGRP, -getpid() )
to receive a SIGIO/SIGPOLL when there is data on the socket. The above
call always seems to return with -1 and a "invalid parameter" errno.
Since this is the last in a string of calls ( getsockopt, setsockopt, ioctl,
etc.) that manipulate the socket I feel confident that the descriptor is
valid, so what is the "invalid parameter"??
I have also tried to use "fcntl(sd, F_SETOWN, getpid())" with the same
result.
HELP!!