From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f8b4f8091d123f97,start X-Google-Attributes: gidfee84,public From: john hall Subject: Quiz - D/UNIX STREAMS Module Date: 1997/11/26 Message-ID: <347B7891.5D9F@netcomuk.co.uk>#1/1 X-Deja-AN: 292698573 X-Complaints-To: abuse@corp.netcom.net.uk X-Trace: taliesin.netcom.net.uk 880507148 9676 194.42.230.33 (26 Nov 1997 01:19:08 GMT) Organization: None. (via NETCOM Internet Ltd. USENET service). Newsgroups: comp.unix.osf.osf1 A short quiz for anyone interested. Spot the "deliberate" mistake in the example STREAMS module given in Annex A of the DEC UNIX Network Programmer's Guide (essentially unchanged, I think, since OSF/1 v 2.0). Hint..... Write a program which pushes the module on a STREAM (e.g a fifo/named pipe) and sends some data around it. Run it and terminate the process (e.g. with a signal) _without_ close()ing the file descriptors. On OSF 3.2g (and other DU versions I suspect), make sure that you've saved any data/edits, etc and don't care about getting grief from other users because you've just been forced to hit the reset switch and reboot. Answers on a posting........ regards john hall