Re: signal delivery

From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 01/23/04


Date: Fri, 23 Jan 2004 06:38:21 +0100

Fong Tsui wrote:
>
> Does anybody know if there are multiple signals sent to the same
> process at the same time, does linux system guarantees all signals got
> delivered?

You can't have more than one pending signal of each type.

>
> I have a case that SIGPIPE and SIGTERM are sent to a process at the
> same time.

In that case you are guaranteed that both will get delivered.
(Assuming the first signal doesn't kill the process.)

> In the code, signals received are not certain, sometimes,
> either one, sometimes none but never got both.

Could be a race condition in your code. Please post a
minimal code example demonstrating the problem.

-- 
Kasper Dupont -- der bruger for meget tid paa usenet.
For sending spam use mailto:aaarep@daimi.au.dk
/* Would you like fries with that? */


Relevant Pages

  • signal delivery
    ... Does anybody know if there are multiple signals sent to the same ... does linux system guarantees all signals got ... Fong ...
    (comp.os.linux.development.system)
  • Re: half duplex SLIP
    ... >> linux system going into an oil well. ... >> get the data on and off the wire. ... >So is the attenuation of TTL signals. ... this is a standard wireline for well logging. ...
    (alt.os.linux)
  • Re: memmove crash
    ... library functions, do not get invalid arguments, thus invoking undefined behavior. ... all kinds of stuff that has to be done when that signal handler is called, so I'd have to go through it all and make sure none of it calls any libc functions that are going to do a malloc, and it's not like it's easy to tell which ones do and which ones don't. ... Now if something that compiles with "-ansi" just fine on my Linux system doesn't compile on yours, then I think I definately want to go back to assembly language. ... those automatically re-registering signals are nice. ...
    (alt.lang.asm)
  • Re: [SLE] Linksys WMP54G & SuSE 9.3 Pro problems (was: Bombproof...)
    ... the problem is that my signal drops between my machines ... working with strong or weak signals. ... unless that too is a Linux system). ... looking for a "card that works well with Linux, ...
    (SuSE)
  • Re: questions about light
    ... I have multiple signals that are travelling through my device. ... I have imagined a simple way to do this: by using light rays which ...
    (sci.physics.research)