Mail Archives: djgpp-workers/1996/10/20/08:33:09
> > BTW, is the fact that a generated SIGINT terminates ALL programs in an
> > execution chain simultaneously unless one of them handles it a feature
> > or a bug? Just curious...
>
> It's a feature. Unix works in this way (i.e., the parent gets the
> signals of its children unless it takes specific action not to), so DJGPP
> does that also, since it's relatively easy. The latest port of GNU Make
> 3.75 uses this to correctly say "Interrupt" when the compilation is
> interrupted, just like on Unix.
>
> Note that, unlike Unix, only SIGINT works this way; other signals (such
> as SIGFPE) don't.
AFAIK, this is not quite correct. In UNIX, parent process does not get
child signals. It is terminal driver who sends SIGINT to *group* of
foreground processes, thus both parent and child get it if they are
foreground on the same terminal. The same happens with SIGQUIT and
SIGTSTP signals.
- Raw text -