Re: Signal handling possibly wrong

From: Steven Rostedt (rostedt_at_goodmis.org)
Date: 08/09/05

  • Next message: George Anzinger: "Re: [PATCH] i386 No-Idle-Hz aka Dynamic-Ticks 3"
    To: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
    Date:	Tue, 09 Aug 2005 16:03:32 -0400
    
    
    

    On Tue, 2005-08-09 at 21:41 +0200, Bodo Stroesser wrote:
    > S
    > > To me, the man pages make more sense, and I think the kernel is wrong.
    >
    > Yes, that's what I think, too. If someone doesn't want additional signals
    > to be masked, he can set sa_mask to be empty.
    > OTOH, I have no idea, what POSIX specifies. Maybe kernel is right and man
    > page is wrong?
    >
    > Bodo
    > >

    Man pages and kernel are right. I just tested this out on 2.6.13-rc3
    with the attached program and it seems to follow what is stated in the
    man pages. So the assumption of what the code did by looking at it
    proves to be the mistake. :-)

    Conclusion: sa_mask defers the signals. SA_NODEFER defers the sent
    signal.

    -- Steve

    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: George Anzinger: "Re: [PATCH] i386 No-Idle-Hz aka Dynamic-Ticks 3"

    Relevant Pages

    • Re: Scheduler: Spinning until tasks are STOPPED
      ... > I sent a message regarding this issue earlier, but after re-reading ... And using signals and spinning on yield for synchronisation and ... process control in the kernel like this is fairly crazy. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: how do threads work?
      ... >> A process cannot consider to switch task unless the flow of instructions ... >> kernel for a little help, in the form of regular timer signals. ... If you now ask, how does the kernel deliver signals, then we are no longer ...
      (comp.os.linux.development.system)
    • Re: Comments on the KSE option
      ... think M:N support in the kernel is a good idea. ... When the userland thread library issues a non-blocking ... When the userland thread scheduler switches threads ... It must also poll for blocked signals. ...
      (freebsd-current)
    • Re: Function: int recv (Socket, Buffer,Length, Flags) is returning with the error number 4
      ... That's a nice speculation by someone with little clue in kernel ... what it means from a kernel coding standpoint to "interrupt a system call". ... set to EINTR after the handler was run, there was no 'kernel state' to ... kernel can deliver signals at any time to a thread which is currently ...
      (comp.unix.programmer)
    • Re: allocating kernel threads from a pool
      ... kernel level threads to do IO, so that a user-level thread's IO calls ... you don't need signals at all. ... another thread writes a pointer to a command to another end of the ...
      (comp.unix.programmer)