Setup a signal frame.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a question regarding the setup_frame function in
arch/mips/kernel/signal.c.

If the setup fails we send a SIGSEGV to the current process, but before
doing that we check if signr == SIGSEGV, and if so install the default
handler.
But isn't we sending a SIGSEGV signal, and therefore always should
install the default handler and not check if the original signal was
SIGSEGV ?

In kernel 2.2.12 we always used do_exit(SIGSEGV) if the setup failed,
why has this changed in the 2.4.0 kernel ?

/Carsten

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux