Path: utzoo!attcan!uunet!lll-winken!spl1!laidbak!daveb From: daveb@laidbak.UUCP (Dave Burton) Newsgroups: comp.unix.wizards Subject: Re: How can I read keyboard without stopping Keywords: non-blocking read death Message-ID: <1606@laidbak.UUCP> Date: 23 Aug 88 14:23:51 GMT References: <813@ms3.UUCP> <1246@mcgill-vision.UUCP> <1202@tjalk.cs.vu.nl> Reply-To: daveb@laidbak.UUCP (Dave Burton) Organization: is pretty bad/My method of Lines: 18 In article <1202@tjalk.cs.vu.nl> maart@cs.vu.nl () writes: |In article <1246@mcgill-vision.UUCP> mouse@mcgill-vision.UUCP (der Mouse) writes: |\ - generally, non-blocking mode *must* be turned off or |\ the shell will die - so you must trap SIGBUS, |\ SIGSEGV, SIGINT, etc. |Are you saying that the shell will die if a CHILD sets the non-blocking mode? |I guess your operating system isn't Unix. Consider what read(2) returns in non-blocking mode. I'd bet that the input routine for the shell says something to the effect of: if ((cc = read(0, buf, sizeof buf)) == 0) { /* EOF seen */ cleanup(); exit(0); } -- Dave Burton | ``/* You are not expected to understand this. */'' {att,sun}!laidbak!daveb | (312) 505-9100 x325 | Disclaimer: I channel only for myself.