cvs commit: src/sys/kern kern_sig.c

David Xu davidxu at FreeBSD.org
Thu Jul 17 15:52:57 PDT 2003


davidxu     2003/07/17 15:52:55 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             kern_sig.c 
  Log:
  Fix sigwait to conform to POSIX.
  When a signal is being delivered to process, first find a sigwait
  thread to deliver, POSIX's argument is speed of delivering signal
  to sigwait thread is faster than other ways. A signal in its wait
  set will cause sigwait to return the signal number, a signal not
  in its wait set but in not blocked by the thread also causes sigwait
  to return, but sigwait returns EINTR, sigwait is oneshot operation,
  only one signal can be delivered to its wait set, when a signal is
  delivered to the sigwait thread, the thread's sigwait state is canceled.
  
  Revision  Changes    Path
  1.252     +109 -67   src/sys/kern/kern_sig.c


More information about the cvs-src mailing list