home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3351 < prev    next >
Encoding:
Text File  |  1992-07-29  |  969 b   |  32 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!sun-barr!decwrl!pa.dec.com!decprl!decprl!boyd
  3. From: boyd@prl.dec.com (Boyd Roberts)
  4. Subject: Re: ptys and other pipe-like devices
  5. Message-ID: <1992Jul29.192000.4885@prl.dec.com>
  6. Sender: news@prl.dec.com (USENET News System)
  7. Nntp-Posting-Host: prl313.prl.dec.com
  8. Organization: Digital Equipment Corporation - Paris Research Laboratory
  9. References:  <1992Jul24.014111.3578@manitou.cse.dnd.ca>
  10. Date: Wed, 29 Jul 1992 19:20:00 GMT
  11. Lines: 19
  12.  
  13. In article <1992Jul24.014111.3578@manitou.cse.dnd.ca>, pburry@manitou.cse.dnd.ca (Paul Burry) writes:
  14. > I have an application that would like to make 16k non-interruptable writes
  15. > to a pty device.
  16.  
  17. 16k write down a pty.  Yeah, right, what _are_ you trying to do?
  18.  
  19. What about signal(2)?
  20.  
  21.  
  22.     oldsig = signal(SIG-to-be-avoided, SIG_IGN);
  23.  
  24.     write(...);
  25.  
  26.     signal(SIG-to-be-avoided, oldsig);
  27.  
  28.  
  29. Boyd Roberts            boyd@prl.dec.com
  30.  
  31. ``When the going gets wierd, the weird turn pro...''
  32.