Once it happens it doesn't stop until something is received by some other handle. It's very annoying since the CPU load grows enormeously.
It always happens with stdin (zero). I've tried the following settings for stdin without success:
fcntl( 0, F_SETFL, O_NONBLOCK );
setvbuf( stdin, NULL, _IONBF, 0 );
Any ideas?
Thanks in advance.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/