Skip to content
Snippets Groups Projects
Commit e232d8a0 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added some paranoia in signal_handler().

Rev: src/signal_handler.c:1.17
parent e029a722
No related branches found
No related tags found
No related merge requests found
......@@ -310,6 +310,13 @@ static RETSIGTYPE receive_signal(int signum)
{
int tmp;
if ((signum < 0) || (signum >= MAX_SIGNALS)) {
// Some OSs (Solaris 2.6) send a bad signum sometimes.
// SIGCHLD is the safest signal to substitute.
// /grubba 1998-05-19
signum = SIGCHLD;
}
tmp=firstsig+1;
if(tmp == SIGNAL_BUFFER) tmp=0;
if(tmp != lastsig)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment