diff --git a/ChangeLog b/ChangeLog index 2f1d7195..2da9514b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,28 +28,60 @@ v0.91.10 21-Aug-2007 mbcico: Fixed a lot of compiler warnings. Fixed compiling on NetBSD 3.1. + Catch SIGIOT. + + mbout: + Catch SIGIOT. + + mbaff: + Catch SIGIOT. mbfido: Fixed a lot of compiler warnings. Fixed compiling on NetBSD 3.1. If no LFN is empty, create a lowercase name. + Catch SIGIOT. + + mbfile: + Catch SIGIOT. + + mbindex: + Catch SIGIOT. + + mbmsg: + Catch SIGIOT. mbdiff: Fixed a lot of compiler warnings. + Catch SIGIOT. mball: Removed debug logging for checking WWW/FTP downloads. + Catch SIGIOT. mbsebbs: Fixed a lot of compiler warnings. Fixed compiling on NetBSD 3.1. + Catch SIGIOT. + + mbnewusr: + Catch SIGIOT. + + mbstat: + Catch SIGIOT. + + mbnntp: + Catch SIGIOT. mbmon: Added support or the ARM processor. + Catch SIGIOT. mbtask: Added support or the ARM processor. Fixed compiling on NetBSD 3.1. + Fixed a too small buffer. + Catch SIGIOT. mblogin: On NetBSD accepts the -a parameter. diff --git a/mbcico/mbcico.c b/mbcico/mbcico.c index f606828e..d3a647ca 100644 --- a/mbcico/mbcico.c +++ b/mbcico/mbcico.c @@ -209,7 +209,7 @@ int main(int argc, char *argv[]) * Catch all signals we can, and ignore the rest. */ for (i = 0; i < NSIG; i++) { - if ((i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) { + if ((i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) { signal(i, (void (*))die); } else if ((i != SIGKILL) && (i != SIGSTOP)) { signal(i, SIG_IGN); diff --git a/mbcico/mbout.c b/mbcico/mbout.c index d62901f9..71f53bf3 100644 --- a/mbcico/mbout.c +++ b/mbcico/mbout.c @@ -4,7 +4,7 @@ * Purpose: MBSE BBS Outbound Manager * ***************************************************************************** - * Copyright (C) 1997-2005 + * Copyright (C) 1997-2007 * * Michiel Broek FIDO: 2:280/2802 * Beekmansbos 10 @@ -185,7 +185,7 @@ int main(int argc, char *argv[]) * Catch all signals we can, and ignore the rest. */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if ((i != SIGKILL) && (i != SIGSTOP)) signal(i, SIG_IGN); diff --git a/mbfido/mbaff.c b/mbfido/mbaff.c index 4af74d6c..4f3538a4 100644 --- a/mbfido/mbaff.c +++ b/mbfido/mbaff.c @@ -4,7 +4,7 @@ * Purpose ...............: Announce new files and FileFind * ***************************************************************************** - * Copyright (C) 1997-2005 + * Copyright (C) 1997-2007 * * Michiel Broek FIDO: 2:280/2802 * Beekmansbos 10 @@ -105,7 +105,7 @@ int main(int argc, char **argv) * Catch all signals we can, and ignore the rest. */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if ((i != SIGKILL) && (i != SIGSTOP)) signal(i, SIG_IGN); diff --git a/mbfido/mbdiff.c b/mbfido/mbdiff.c index 2a582069..1dc31e1c 100644 --- a/mbfido/mbdiff.c +++ b/mbfido/mbdiff.c @@ -125,7 +125,7 @@ int main(int argc, char **argv) * Catch all signals we can, and ignore the rest. */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV)) + if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbfido/mbfido.c b/mbfido/mbfido.c index 5c2e226c..bf65aec2 100644 --- a/mbfido/mbfido.c +++ b/mbfido/mbfido.c @@ -392,7 +392,7 @@ int main(int argc, char **argv) */ for(i = 0; i < NSIG; i++) { - if ((i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbfido/mbfile.c b/mbfido/mbfile.c index 9ef2c2e2..8a8a0dfe 100644 --- a/mbfido/mbfile.c +++ b/mbfido/mbfile.c @@ -85,7 +85,7 @@ int main(int argc, char **argv) * Catch all signals we can, and ignore the rest. */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbfido/mbindex.c b/mbfido/mbindex.c index 7f039878..d6016aa4 100644 --- a/mbfido/mbindex.c +++ b/mbfido/mbindex.c @@ -154,7 +154,7 @@ int main(int argc,char *argv[]) */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV)) + if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGIOT)) signal(i, (void (*))die); else if ((i != SIGKILL) && (i != SIGSTOP)) signal(i, SIG_IGN); diff --git a/mbfido/mbmsg.c b/mbfido/mbmsg.c index 2dcb768a..185dfe51 100644 --- a/mbfido/mbmsg.c +++ b/mbfido/mbmsg.c @@ -4,7 +4,7 @@ * Purpose ...............: Message Base Maintenance * ***************************************************************************** - * Copyright (C) 1997-2005 + * Copyright (C) 1997-2007 * * Michiel Broek FIDO: 2:280/2802 * Beekmansbos 10 @@ -92,7 +92,7 @@ int main(int argc, char **argv) * Catch all signals we can, and ignore or catch them */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if ((i != SIGKILL) && (i != SIGSTOP)) signal(i, SIG_IGN); diff --git a/mbmon/mbmon.c b/mbmon/mbmon.c index 0d0d0993..60ce46b0 100644 --- a/mbmon/mbmon.c +++ b/mbmon/mbmon.c @@ -783,6 +783,7 @@ int main(int argc, char *argv[]) signal(SIGSEGV,(void (*))die); signal(SIGTERM,(void (*))die); signal(SIGKILL,(void (*))die); + signal(SIGIOT,(void (*))die); if (ioctl(1, TIOCGWINSZ, &ws) != -1 && (ws.ws_col > 0) && (ws.ws_row > 0)) { rows = ws.ws_row; diff --git a/mbnntp/mbnntp.c b/mbnntp/mbnntp.c index b229f619..8fe49ca9 100644 --- a/mbnntp/mbnntp.c +++ b/mbnntp/mbnntp.c @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) */ for(i = 0; i < NSIG; i++) { - if ((i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbsebbs/mbnewusr.c b/mbsebbs/mbnewusr.c index 1715fe0f..8e0ae583 100644 --- a/mbsebbs/mbnewusr.c +++ b/mbsebbs/mbnewusr.c @@ -159,7 +159,7 @@ int main(int argc, char **argv) * Trap signals */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbsebbs/mbsebbs.c b/mbsebbs/mbsebbs.c index 740b8df6..fccb7e11 100644 --- a/mbsebbs/mbsebbs.c +++ b/mbsebbs/mbsebbs.c @@ -208,7 +208,7 @@ int main(int argc, char **argv) * Trap signals */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbsetup/mbsetup.c b/mbsetup/mbsetup.c index 3fe0f1f4..0cd51d83 100644 --- a/mbsetup/mbsetup.c +++ b/mbsetup/mbsetup.c @@ -423,6 +423,7 @@ int main(int argc, char *argv[]) signal(SIGSEGV,(void (*))die); signal(SIGTERM,(void (*))die); signal(SIGKILL,(void (*))die); + signal(SIGIOT, (void (*))die); oldmask = umask(002); diff --git a/mbutils/mball.c b/mbutils/mball.c index bd899103..1a48ae1e 100644 --- a/mbutils/mball.c +++ b/mbutils/mball.c @@ -141,7 +141,7 @@ int main(int argc, char **argv) * Catch all signals we can, and ignore the rest. */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if (i == SIGCHLD) signal(i, SIG_DFL); diff --git a/mbutils/mbstat.c b/mbutils/mbstat.c index d1189efe..1cdf5d3b 100644 --- a/mbutils/mbstat.c +++ b/mbutils/mbstat.c @@ -4,7 +4,7 @@ * Purpose ...............: Change BBS status * ***************************************************************************** - * Copyright (C) 1997-2005 + * Copyright (C) 1997-2007 * * Michiel Broek FIDO: 2:280/2802 * Beekmansbos 10 @@ -120,7 +120,7 @@ int main(int argc, char **argv) * Catch or ignore signals */ for (i = 0; i < NSIG; i++) { - if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM)) + if ((i == SIGHUP) || (i == SIGINT) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM) || (i == SIGIOT)) signal(i, (void (*))die); else if ((i != SIGKILL) && (i != SIGSTOP)) signal(i, SIG_IGN);