Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!uunet!ccicpg!conexch!stanton!donegan From: donegan@stanton.UUCP (Steven P. Donegan) Newsgroups: comp.unix.bsd Subject: Timed fgets Keywords: fgets fread timed timeout Message-ID: <96947@stanton.UUCP> Date: 7 Jul 93 00:26:11 GMT Organization: Stanton Public Domain Systems, Stanton, Ca. Lines: 14 I am trying to work with an Intermec bar code printer. Things work quite nicely at present but I have one more error condition I'd like to catch. The condition would be that I've sent a command to the printer but, for whatever weird reason, the printer fails to respond. I'm now caught in an fgets that will never return. I really need to know of anything that I can use that can check the status of a stream (in a non-blocking mode) and tell me if there is any i/o pending. Thanks in advance for any suggestions. This is a BSD 4.3 system (specifically BSDI's 1.0 release). -- Steven P. Donegan The opinions expressed here are mine Senior Engineer, Information Services donegan@stanton.cts.com, stanton!donegan Western Digital Corporation 714-932-6055 voicemail PP-ASEL, Instrument Student 714-894-2246 uucp - nuucp no word