Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
bf4cb683
Commit
bf4cb683
authored
17 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Set zm.local_abort for locally aborted transfers (X/Ymodem or Zmodem).
parent
b59d914e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/sexyz.c
+6
-7
6 additions, 7 deletions
src/sbbs3/sexyz.c
with
6 additions
and
7 deletions
src/sbbs3/sexyz.c
+
6
−
7
View file @
bf4cb683
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
6
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
8
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
...
...
@@ -107,7 +107,6 @@ BOOL telnet=TRUE;
BOOL
stdio
=
FALSE
;
struct
termios
origterm
;
#endif
BOOL
aborted
=
FALSE
;
BOOL
terminate
=
FALSE
;
BOOL
debug_tx
=
FALSE
;
BOOL
debug_rx
=
FALSE
;
...
...
@@ -203,7 +202,7 @@ void break_handler(int type)
lprintf
(
LOG_NOTICE
,
"-> Aborted Locally (signal: %d)"
,
type
);
/* Flag to indicate local (as opposed to remote) abort */
abort
ed
=
TRUE
;
zm
.
local_
abort
=
TRUE
;
/* Stop any transfers in progress immediately */
xm
.
cancelled
=
TRUE
;
...
...
@@ -873,7 +872,7 @@ static int send_files(char** fname, uint fnames)
,(
xm
.
total_bytes
-
xm
.
sent_bytes
)
/
1024
);
}
else
lprintf
(
LOG_WARNING
,
"File Transfer %s"
,
abort
ed
?
"Aborted"
:
"Failure"
);
lprintf
(
LOG_WARNING
,
"File Transfer %s"
,
zm
.
local_
abort
?
"Aborted"
:
"Failure"
);
/* DSZLOG entry */
if
(
logfp
)
{
...
...
@@ -894,7 +893,7 @@ static int send_files(char** fname, uint fnames)
}
total_bytes
+=
sent_bytes
;
if
(
abort
ed
)
{
if
(
zm
.
local_
abort
)
{
xm
.
cancelled
=
FALSE
;
xmodem_cancel
(
&
xm
);
break
;
...
...
@@ -1197,7 +1196,7 @@ static int receive_files(char** fname_list, int fnames)
lprintf
(
LOG_INFO
,
"Successful - Time: %lu:%02lu CPS: %lu"
,
t
/
60
,
t
%
60
,
file_bytes
/
t
);
else
lprintf
(
LOG_ERR
,
"File Transfer %s"
,
abort
ed
?
"Aborted"
:
"Failure"
);
lprintf
(
LOG_ERR
,
"File Transfer %s"
,
zm
.
local_
abort
?
"Aborted"
:
"Failure"
);
if
(
!
(
mode
&
XMODEM
)
&&
ftime
)
setfdate
(
str
,
ftime
);
...
...
@@ -1218,7 +1217,7 @@ static int receive_files(char** fname_list, int fnames)
fflush
(
logfp
);
}
if
(
abort
ed
)
{
if
(
zm
.
local_
abort
)
{
lprintf
(
LOG_DEBUG
,
"Locally aborted, sending cancel to remote"
);
if
(
mode
&
ZMODEM
)
zmodem_abort_receive
(
&
zm
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment