[comp.unix.questions] weepin' in the corner

maart@cs.vu.nl (Maarten Litmaath) (12/13/88)

levy@ttrdc.UUCP (Daniel R. Levy) writes:

\In article <1776@solo11.cs.vu.nl>, maart@cs.vu.nl (Maarten Litmaath) writes:
\> fcntl(fd, F_SETFL, FNDELAY):          |Maarten Litmaath @ VU Amsterdam:
\>       let's go weepin' in the corner! |maart@cs.vu.nl, mcvax!botter!maart

\What's to weep about?  I'm curious.

Execute the following little program in the Bourne shell:

----snip----snip----snip----snip----snip----snip----snip----snip----snip----
#include	<fcntl.h>


main()
{
	if (fcntl(0, F_SETFL, FNDELAY) != 0)
		perror("fcntl");
}
----snip----snip----snip----snip----snip----snip----snip----snip----snip----

Imagine what csh's got to do to prevent the `cute' effect...
-- 
fcntl(fd, F_SETFL, FNDELAY):          |Maarten Litmaath @ VU Amsterdam:
      let's go weepin' in the corner! |maart@cs.vu.nl, mcvax!botter!maart