Fixed zmodem-8k downloads
This commit is contained in:
parent
14db48511e
commit
8e99524466
@ -12,6 +12,11 @@ v0.71.1 28-Nov-2004
|
|||||||
so that mbfido won't start before the bbs is finished.
|
so that mbfido won't start before the bbs is finished.
|
||||||
Removed bbslist menus, this will become a door.
|
Removed bbslist menus, this will become a door.
|
||||||
Added #define NFGVMIN 1 in openport.
|
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:
|
examples:
|
||||||
Removed bbs list items from the English menus and txtfiles and
|
Removed bbs list items from the English menus and txtfiles and
|
||||||
|
@ -120,7 +120,10 @@ void Good_Bye(int onsig)
|
|||||||
if ((onsig != SIGALRM) && (onsig != MBERR_TIMEOUT) && (hanged_up == 0)) {
|
if ((onsig != SIGALRM) && (onsig != MBERR_TIMEOUT) && (hanged_up == 0)) {
|
||||||
cookedport();
|
cookedport();
|
||||||
}
|
}
|
||||||
Syslog('b', "Will hangup");
|
|
||||||
|
/*
|
||||||
|
* Ignore SIGHUP during hangup.
|
||||||
|
*/
|
||||||
signal(SIGHUP, SIG_IGN);
|
signal(SIGHUP, SIG_IGN);
|
||||||
hangup();
|
hangup();
|
||||||
|
|
||||||
@ -128,7 +131,6 @@ Syslog('b', "Will hangup");
|
|||||||
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))
|
||||||
signal(i, SIG_DFL);
|
signal(i, SIG_DFL);
|
||||||
}
|
}
|
||||||
Syslog('b', "Restored signals");
|
|
||||||
|
|
||||||
if (do_mailout)
|
if (do_mailout)
|
||||||
CreateSema((char *)"mailout");
|
CreateSema((char *)"mailout");
|
||||||
|
@ -242,7 +242,7 @@ int download(down_list *download_list)
|
|||||||
if (uProtInternal) {
|
if (uProtInternal) {
|
||||||
sprintf(temp, "%s/%s/tag", CFG.bbs_usersdir, exitinfo.Name);
|
sprintf(temp, "%s/%s/tag", CFG.bbs_usersdir, exitinfo.Name);
|
||||||
chdir(temp);
|
chdir(temp);
|
||||||
if (strncasecmp(sProtName, "zmodem 8k", 9) == 0) {
|
if (strncasecmp(sProtName, "zmodem-8k", 9) == 0) {
|
||||||
maxrc = zmsndfiles(download_list, TRUE);
|
maxrc = zmsndfiles(download_list, TRUE);
|
||||||
Home();
|
Home();
|
||||||
} else if (strncasecmp(sProtName, "zmodem", 6) == 0) {
|
} else if (strncasecmp(sProtName, "zmodem", 6) == 0) {
|
||||||
|
Reference in New Issue
Block a user