Re: Question about Linux signal handling

Alan Cox
2003-02-23T22:33:26Z

On Sun, 2003-02-23 at 22:29, Albert Cahalan wrote:
> Yes. This is the behavior of all SysV UNIX systems
> and Linux kernels. Unfortunately, BSD got it wrong.

Firstly BSD didn't get it wrong, things merely diverged
historically after V7 unix.

> Worse, the glibc developers saw fit to ignore both
> UNIX history and Linus. They implemented BSD behavior
> by making signal() use the sigaction system call

Also wrong. If you read the gcc documentation you can
select favouring BSD or SYS5 behaviour at compile time

glibc has the best of both worlds