Enrico Scholz <enrico.scholz(a)wirtschaft.tu-chemnitz.de> writes:
> [...]
> fcntl(11, F_GETOWN) = 0
> getpid() = 2285
> fcntl(11, F_SETOWN, 2285) = 0
> ioctl(11, 0x7, 0xbfffef38) = -1 EINVAL (Invalid argument)
> ioctl(11, 0x6, 0x4) = -1 EINVAL (Invalid argument)
>
> This seems suspect to me.... It does look suspiciously like
>
> ioctl (filedesc, I_GETSIG, &events);
> ioctl (filedesc, I_SETSIG, events | S_INPUT);
>
> from sysdep.c
That's right.
Could you patch sysdep.c such that it doens't use these ioctl's but
instead uses one of the other methods. Searching some manpage on the
net seems to indicate FIOASYNC should work,
Jan
P.S. The solaris manpages talk about streams and stuff so that is
probably not a good idea.