From 27441cd8624497a7b44e6c4f0be1444328b02ae0 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 29 Nov 2004 22:03:29 +0000 Subject: [PATCH] added debug info --- mbsebbs/bye.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mbsebbs/bye.c b/mbsebbs/bye.c index 757ba552..7f7cb793 100644 --- a/mbsebbs/bye.c +++ b/mbsebbs/bye.c @@ -106,7 +106,7 @@ void Good_Bye(int onsig) * Flush all data to the user, wait 5 seconds to * be sure the user received all data. */ - if (! hanged_up) { + if ((onsig != SIGALRM) && (onsig != MBERR_TIMEOUT) && (hanged_up == 0)) { colour(LIGHTGRAY, BLACK); sleep(4); } @@ -114,8 +114,10 @@ void Good_Bye(int onsig) for (i = 0; i < NSIG; i++) signal(i, SIG_IGN); + Syslog('b', "Will hangup"); cookedport(); hangup(); + Syslog('b', "Done"); if (do_mailout) CreateSema((char *)"mailout");