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
a6e669db
Commit
a6e669db
authored
19 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
More status output when re-running a module or returning a module-specified
exit_code.
parent
b0fa4a8d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/jsexec.c
+7
-0
7 additions, 0 deletions
src/sbbs3/jsexec.c
with
7 additions
and
0 deletions
src/sbbs3/jsexec.c
+
7
−
0
View file @
a6e669db
...
...
@@ -763,6 +763,7 @@ int main(int argc, char **argv, char** environ)
char
*
omode
=
"w"
;
int
argn
;
long
result
;
ulong
exec_count
=
0
;
BOOL
loop
=
FALSE
;
BOOL
nonbuffered_con
=
FALSE
;
...
...
@@ -958,6 +959,9 @@ int main(int argc, char **argv, char** environ)
do
{
if
(
exec_count
++
)
fprintf
(
statfp
,
"
\n
Re-running: %s
\n
"
,
module
);
recycled
=
FALSE
;
if
(
!
js_init
(
environ
))
{
...
...
@@ -968,6 +972,9 @@ int main(int argc, char **argv, char** environ)
result
=
js_exec
(
module
,
&
argv
[
argn
]);
if
(
result
)
lprintf
(
LOG_ERR
,
"!Module set exit_code: %ld"
,
result
);
fprintf
(
statfp
,
"
\n
"
);
fprintf
(
statfp
,
"JavaScript: Destroying context
\n
"
);
JS_DestroyContext
(
js_cx
);
...
...
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