[comp.unix.wizards] O_NDELAY

ditto@cbmvax.UUCP (Michael "Ford" Ditto) (08/23/88)

In article <1202@tjalk.cs.vu.nl> maart@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@kenobi.cts.com
This space under construction,		...!ucsd!elgar!ford
pardon our dust.			ditto@cbmvax.commodore.com