Fixed zmodem-8k downloads

This commit is contained in:
Michiel Broek 2004-12-06 21:48:36 +00:00
parent 14db48511e
commit 8e99524466
3 changed files with 10 additions and 3 deletions

View File

@ -12,6 +12,11 @@ v0.71.1 28-Nov-2004
so that mbfido won't start before the bbs is finished.
Removed bbslist menus, this will become a door.
Added #define NFGVMIN 1 in openport.
During hangup we set sighup to ignore.
Made zmodem-8k downloads work again.
mbnewuser:
During hangup we set sighup to ignore.
examples:
Removed bbs list items from the English menus and txtfiles and

View File

@ -120,7 +120,10 @@ void Good_Bye(int onsig)
if ((onsig != SIGALRM) && (onsig != MBERR_TIMEOUT) && (hanged_up == 0)) {
cookedport();
}
Syslog('b', "Will hangup");
/*
* Ignore SIGHUP during hangup.
*/
signal(SIGHUP, SIG_IGN);
hangup();
@ -128,7 +131,6 @@ Syslog('b', "Will hangup");
if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV) || (i == SIGTERM))
signal(i, SIG_DFL);
}
Syslog('b', "Restored signals");
if (do_mailout)
CreateSema((char *)"mailout");

View File

@ -242,7 +242,7 @@ int download(down_list *download_list)
if (uProtInternal) {
sprintf(temp, "%s/%s/tag", CFG.bbs_usersdir, exitinfo.Name);
chdir(temp);
if (strncasecmp(sProtName, "zmodem 8k", 9) == 0) {
if (strncasecmp(sProtName, "zmodem-8k", 9) == 0) {
maxrc = zmsndfiles(download_list, TRUE);
Home();
} else if (strncasecmp(sProtName, "zmodem", 6) == 0) {