home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / biz / sco / general / 4776 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

  1. Xref: sparky biz.sco.general:4776 comp.unix.sysv386:17571
  2. Path: sparky!uunet!shady!kevin
  3. From: kevin@shady.UUCP (Kevin Smith)
  4. Newsgroups: biz.sco.general,comp.unix.sysv386
  5. Subject: Re: sigaction() and rescheduling interrupted system calls
  6. Keywords: sigaction system call sco reschedule
  7. Message-ID: <64@shady.UUCP>
  8. Date: 21 Dec 92 08:16:25 GMT
  9. References: <1992Dec16.100827.10097@dd.dk>
  10. Followup-To: biz.sco.general
  11. Organization: ShadeTree Software, Inc.
  12. Lines: 31
  13.  
  14. In article <1992Dec16.100827.10097@dd.dk> wes@dd.dk (Mads Westermann) writes:
  15. :>I'm running SCO ODT 2.0 (SCO Unix 3.2.4) and have run into the problem
  16. :>of rescheduling an interrupted system call after a signal has occured.
  17. :>
  18. :>In my AT&T Sys V.4 manual there's reference to a SA_RESTART flag on
  19. :>the sigaction() function that causes interrupted system calls to be
  20. :>transparently restarted.
  21. :>
  22. :>In my Ultrix 4.2 manual there's reference to a SV_INTERRUPT flag that
  23. :>does the same.
  24. :>
  25. :>My SCO manual doesn't know of any such thing - It seems like the only
  26. :>possibility is to manually check the return code and the errno from the
  27. :>system call and manually restart the system-call if errno equals EINTR.
  28. :>
  29. :>Has anybody solved the problem ? Is there a way to solve it ?
  30. :>
  31. :>Any input on this subject would be greatly appreciated.
  32. :>
  33.  
  34. Since most system calls are not interruptable the problem is not as big as
  35. it might seem.  Terminal and printer I/O, pause(), wait(), messages and
  36. semiphores are about it (and probably any network/socket read and writes)
  37. Ok so there are a few.  Your basic disk and tape IO are, however, not
  38. interruptable so the interrupt actually occurs immediatly after the system
  39. call.
  40. -- 
  41.         | Email - !shady!kevin uunet!shady!kevin kevin%shady@uunet.uu.net
  42. Kevin Smith | Voice - (908) 874-7980
  43.         | Mail  - ShadeTree Software, Inc., 192 Capricorn Dr. #10,
  44.         |         Somerville, NJ  08876
  45.