🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50456

Interrupt the process by stdin ? How please?

#50456
From: WONG
Date: Wed, 22 Sep 1993 21:11
15 lines
1092 bytes
Hi, dear C gurus, I have a question about a general C program, or
a Gnu-C one.  What kind of system call can I make in my C program
such that the while loop can keep running until I hit something
on the keyboard(except Ctr-chars!) ?

I am using a Sparc station, and I read something about asyn. read,
that is, read returns right away if there is not data in stdin?
Am I mistaken or how should I do it or what is the standard way to
do it??

ANy help in greatly appreciated.

Thanks in advance.
Daniel 
Technical Details
Message-ID: <27qf1e$cpo@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!po.EECS.Berkeley.EDU!danwong

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b2997e0ad69b799f,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-22 14:41:00 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!po.EECS.Berkeley.EDU!danwong
From: danwong@po.EECS.Berkeley.EDU (WONG)
Newsgroups: gnu.gcc.help
Subject: Interrupt the process by stdin ? How please?
Date: 22 Sep 1993 21:11:10 GMT
Organization: University of California, at Berkeley
Lines: 16
Message-ID: <27qf1e$cpo@agate.berkeley.edu>
NNTP-Posting-Host: po.eecs.berkeley.edu