home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:3814 comp.unix.questions:10778
- Newsgroups: comp.unix.wizards,comp.unix.questions
- Path: sparky!uunet!mcsun!sun4nl!htsa!miquels
- From: miquels@htsa.aha.nl (Miquel van Smoorenburg)
- Subject: Re: reliable signals under BSD / SVR4
- Message-ID: <1992Sep6.091651.3134@htsa.aha.nl>
- Keywords: signals, reliable, software interrupts
- Organization: Algemene Hogeschool Amsterdam, The Netherlands
- References: <Btwqvs.LAI@zeus.dialix.oz.au> <acourtny.715556934@unix1.tcd.ie> <1992Sep3.231707.17858@noao.edu>
- Date: Sun, 6 Sep 1992 09:16:51 GMT
- Lines: 36
-
- In article <1992Sep3.231707.17858@noao.edu> rstevens@noao.edu (W. Richard Stevens) writes:
- >>Has anyone investigated other models for signal delivery?
- >
- >In the SVR4 sigaction(2) man page under SA_SIGINFO it says that the
- >signals are "reliably queued." Apparently SVR4 can provide queued
- >signals, but someone-in-the-know told me that Sun made AT&T take this
- >feature out (when they were working on SVR4 together). Perhaps POSIX.4
- >will have them put it back in ...
- >
- >>Come to think of it, doesn't it make it somewhat "tricky" to use
- >> async. I/O at all?
- >
- >I've yet to find a real application that actually uses BSD's SIGIO.
- >Has anyone seen one?
- >
- > Rich Stevens (rstevens@noao.edu)
-
- Some time ago I ported the trs80 emulator for X (xtrs) to Linux. It wasn't
- very difficult, except that it used SIGIO to catch keyboard events.
- And Linux (or all other non-BSD systems, for that matter) doesn't have
- SIGIO. So at the initialization, the process fork()s and then the child
- process does a select() on the fd #0. When it receives data, it sends a
- SIGIO (#define SIGIO SIGUSR1) to it's parent, and hits itself
- with SIGSTOP. Then, when the parent is done reading the data in the signal
- handler, it sends it's child the SIGCONT signal and it's ready to roll
- again. Neat eh?
-
- Mike.
- --
- % Miquel van Smoorenburg, Baljuwstraat 20, 2461SL Langeraar, Holland. %
- % miquels@htsa.aha.nl (school) miquels@drinkel.nl.mugnet.org (home) %
- % Calm down - it's just ones and zeros %
- --
- % Miquel van Smoorenburg, Baljuwstraat 20, 2461SL Langeraar, Holland. %
- % miquels@htsa.aha.nl (school) miquels@drinkel.nl.mugnet.org (home) %
- % Calm down - it's just ones and zeros %
-