List:General Discussion« Previous MessageNext Message »
From:terry jones Date:March 22 1999 8:07pm
Subject:small problem in sql/mysqld.cc
View as plain text  
sql/mysqld.cc contains the following (starts on line 753 in version 3.22.19a):

| #ifdef __WIN32__
| static void init_signals(void)
| {
|   int signals[7] = {SIGINT,SIGILL,SIGFPE,SIGSEGV,SIGTERM,SIGABRT } ;
|   for (uint i=0 ; i < 7 ; i++)
|     signal( signals[i], kill_server) ;
|   signal(SIGBREAK,SIG_IGN);	//ignore SIGBREAK for NT
| }

those 7's should surely be a 6's?
in any case, it would be better to just use sizeof(signals) / sizeof(int).

if you want to reply to me, please use Cc, as i'm not currently on the
mailing list.

Regards,
Terry.
Thread
small problem in sql/mysqld.ccterry jones22 Mar