Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!labtam!eyrie!phoenix!avalon From: avalon@phoenix.pub.uu.oz.au (Darren Reed) Newsgroups: comp.unix.programmer Subject: Re: gets() during signal Message-ID: <1990Dec15.023757.11042@phoenix.pub.uu.oz.au> Date: 15 Dec 90 02:37:57 GMT References: <25232@adm.brl.mil> <11275@arctic.nprdc.navy.mil> <38801@nigel.ee.udel.edu> Organization: Phoenix ComSystem. Public UNIX Melbourne Australia. Lines: 17 Can someone tell me how signals work inside C on unix ? I've seen an alarm() used to timeout a write() call in something like this: alarm(15); write(fd, buf, num); which caused the write to exit if it wasnt successful after 15 seconds. I'm looking for a way of using 'HOT' keys in a program and I'd like to use the keyboard to interrupt the program (cease whatever its doing) and then go on to process the new keypress. I noticed there is a SIGIO, but from what I've read in the odd post, that needs some ioctl() or similar calls to setup. any info would be greatly appreciated.