home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.31 / text0022.txt < prev    next >
Encoding:
Text File  |  1993-07-15  |  1.9 KB  |  46 lines

  1. Submitted-by: lts@westford.ccur.com (Lee Schermerhorn)
  2.  
  3. >Submitted-by: rcollins@encore.com (Roger Collins)
  4. >
  5. >Do signals preempt a user's signal handler?
  6. >
  7. >In other words, you're in a user signal handler, a signal is delivered
  8. >which is caught and unblocked, does it preempt the currently running
  9. >signal handler to run the signal handler for the new signal?  if it
  10. >is a lower numbered signal?
  11.  
  12. Yes -- just as in Posix.1 signals -- handlers do nest.  It doesn't matter
  13. whether the new incoming signal is a lower number or not.  If it is
  14. unblocked (and caught) at the time of generation, it will be delivered.
  15. The only new semantics that Posix.4 bring are:
  16.  
  17. 1)  a specification of queueing of multiple occurences of a signal.  Posix.1
  18.     leaves this implementation defined (1003.1-1990, sect 3.3.1.2, p.53,
  19.     lines 463-464).
  20.  
  21. 2)  a specification of ordering of delivery when more than one signal is
  22.     pending an unblocked:  within the range of "realtime" signals defined
  23.     by Posix.4, lower numbers are delivered first (the rationale explains
  24.     why);  the order outside of the "realtime" range is unspecifed.  Posix.1
  25.     left the ordering unspecified (op cit, lines 464-466).
  26.  
  27. 3)  a specification of the delivery of additional signal information.
  28.     This was essentially lifted from the SVR4 "siginfo" behavior, with
  29.     the addition of an application defined datum that can be passed with
  30.     the signal.
  31.  
  32. You might wonder if a subsequent occurence of a signal can preempt the
  33. signal handler for the same signal, causing it to be reentered.  It could,
  34. but only if the application explicitly unblocked the signal from within
  35. the handler.  When the signal is delivered, its signal number is
  36. automatically added to the process's current blocked signals mask.
  37.  
  38. Lee Schermerhorn
  39. Concurrent Computer Corp
  40. Secretary, P1003.4 WG
  41. Technical Reviewer, P1003.4 various sections
  42.  
  43.  
  44. Volume-Number: Volume 31, Number 23
  45.  
  46.