Index: ossp-pkg/lmtp2nntp/lmtp2nntp_main.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v rcsdiff -q -kk '-r1.69' '-r1.70' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v' 2>/dev/null --- lmtp2nntp_main.c 2003/02/11 11:41:11 1.69 +++ lmtp2nntp_main.c 2003/02/11 13:49:26 1.70 @@ -710,9 +710,22 @@ /* graceful shutdown */ CUS: + signal(SIGCHLD, SIG_DFL); + signal(SIGHUP, SIG_DFL); + signal(SIGINT, SIG_DFL); + signal(SIGQUIT, SIG_DFL); + signal(SIGILL, SIG_DFL); + signal(SIGBUS, SIG_DFL); + signal(SIGSEGV, SIG_DFL); + signal(SIGSYS, SIG_DFL); + signal(SIGTERM, SIG_DFL); + signal(SIGUSR1, SIG_DFL); + signal(SIGUSR2, SIG_DFL); logbook(ctx->l2, L2_LEVEL_NOTICE, "graceful shutdown shortly before exit - no more logging"); - l2_channel_destroy(ctx->l2); - l2_env_destroy(ctx->l2_env); + if (ctx->l2 != NULL) + l2_channel_destroy(ctx->l2); + if (ctx->l2_env != NULL) + l2_env_destroy(ctx->l2_env); if (ctx->saServerbind) sa_destroy(ctx->saServerbind); if (ctx->saaServerbind)