O_NDELAY (Re: How can I read keyboard without stopping)
Michael "Ford" Ditto
ditto at cbmvax.UUCP
Tue Aug 23 12:54:06 AEST 1988
In article <1202 at tjalk.cs.vu.nl> maart at cs.vu.nl () writes:
>Are you saying that the shell will die if a CHILD sets the non-blocking mode?
>I guess your operating system isn't Unix.
I guess you don't know how fcntl works. File flags are in the file
structure, shared between parent & child processes after a fork.
Try this program:
#include <fcntl.h>
main(){fcntl(0, F_SETFL, O_NDELAY);}
and then try to get some work done...
If you're lucky you'll just get logged out.
--
-=] Ford [=-
. . (In Real Life: Mike Ditto)
. : , ford at kenobi.cts.com
This space under construction, ...!ucsd!elgar!ford
pardon our dust. ditto at cbmvax.commodore.com
More information about the Comp.unix.wizards
mailing list