FIFO's and asynchronousity?

Hello,

I have a FIFO which i would like to open O_WDWR | O_NONBLOCK | O_ASYNC and have a SIGIO signal generated when there is input on the FIFO, but there a re a bunch of bugs surrounding this (like for instance i read somewhere that you have to set O_ASYNC with fcntl etc.

is this even possible? has anyone done it and even better - does anyone have a code snippet?

-> maybe i'm going about it wrong, i need to create a bunch of software serial ports (without using kern modules) - would it be best to do it via FIFO's sockets or ptys?

i figured the unix forums would be the best place to come to ask this :slight_smile:

thanks (on advance) for the help!