Re: Pthreads signals




In <Pine.GSO.4.64.0703281615540.14519@xxxxxxxxxxxxx>,
Daniel Eischen <deischen@xxxxxxxxxxx> wrote:
On Wed, 28 Mar 2007, Peter Holmes wrote:

How do signals work with pthreads in FreeBSD. How are process signals
delivered?

The best explanation of signals and threads in general
is in the POSIX spec, or Butenhof's book.

http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html

I suspect the question was rather more specific than that, due to
bad experiences with LinuxThreads. Does FreeBSD have a proper
signal delivery model, where thread masks are per-signal, and signals
sent to the process when all threads within the process have the
signal blocked remain pending against the process so any thread may
accept the signal using sigwait()/sigtimedwait()/sigwaintinfo().

I suspect the answer is yes, but I haven't played with threads on
recent versions enough.

--
Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3"
Internet: steve @ Watt.COM Whois: SW32-ARIN
Free time? There's no such thing. It just comes in varying prices...
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: This is annoying - results of nuclearr stress test
    ... > I suspect this is a stable plaque which is building up and I suspect it may be ... > out could cause me to mistake a real MI for the old blockage and could cause ... The signals that blockage sends out could also help guide you on how ... Andrew B. Chung, MD/PhD ...
    (sci.med.cardiology)
  • Re: unsafe functions from signal handler
    ... I suspect you are right about that. ... You can siglongjmp out of the handler. ... of signals to a process blocked in wait. ... In gdb, I ...
    (comp.os.linux.development.apps)
  • Re: TV extension
    ... Can you get Analogue signals into the ... i'd suspect the piece of cable is a duffer. ... Time to get out your trusty analogue multimeter and check for open, ... then put the connectors on better. ...
    (uk.tech.digital-tv)
  • Re: [PATCH - take 2] knfsd: nfsd: Handle ERESTARTSYS from syscalls.
    ... If it's anything but a SIGKILL, then I wonder if we have ... My understanding is that we have nfsd ... Yes, I suspect it does. ... allowed to interrupt the underlying I/O, but other signals should not. ...
    (Linux-Kernel)
  • Re: [Resend PATCH AIO 1/2] Add AIO completion notification
    ... Does it say anything about the reliability of that signal delivery? ... POSIX AIO being part of the realtime POSIX extension, ... It looks like this is trivial to make fail if one submits more ... operations than the RLIMIT_SIGPENDING rlimit will allow queued signals ...
    (Linux-Kernel)