Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
5d5fa7e4
Commit
5d5fa7e4
authored
Aug 30, 2023
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/js-drone: handle sigint
parent
5c4534cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
software/js-drone/buildout.hash.cfg
software/js-drone/buildout.hash.cfg
+1
-1
software/js-drone/drone-scripts/main.js.jinja
software/js-drone/drone-scripts/main.js.jinja
+2
-1
No files found.
software/js-drone/buildout.hash.cfg
View file @
5d5fa7e4
...
@@ -30,7 +30,7 @@ md5sum = 7d063b33dbdd7548e2a23bc4d8a66a43
...
@@ -30,7 +30,7 @@ md5sum = 7d063b33dbdd7548e2a23bc4d8a66a43
[main]
[main]
_update_hash_filename_ = drone-scripts/main.js.jinja
_update_hash_filename_ = drone-scripts/main.js.jinja
md5sum =
7b7073788175c45116bf72dbda4ba044
md5sum =
42b7dd4866c405ea4b3d7384f0d0f6c7
[pubsub]
[pubsub]
_update_hash_filename_ = drone-scripts/pubsub.js.jinja
_update_hash_filename_ = drone-scripts/pubsub.js.jinja
...
...
software/js-drone/drone-scripts/main.js.jinja
View file @
5d5fa7e4
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
stopPubsub,
stopPubsub,
takeOffAndWait
takeOffAndWait
} from {{ json_module.dumps(qjs_wrapper) }};
} from {{ json_module.dumps(qjs_wrapper) }};
import { Worker, SIGTERM, setTimeout, signal } from "os";
import { Worker, SIG
INT, SIG
TERM, setTimeout, signal } from "os";
import { exit, open } from "std";
import { exit, open } from "std";
(function (arm, console, exit, open, scriptArgs, setTimeout, start, stop,
(function (arm, console, exit, open, scriptArgs, setTimeout, start, stop,
...
@@ -53,6 +53,7 @@ import { exit, open } from "std";
...
@@ -53,6 +53,7 @@ import { exit, open } from "std";
}
}
signal(SIGTERM, exitWorker.bind(null, 0));
signal(SIGTERM, exitWorker.bind(null, 0));
signal(SIGINT, exitWorker.bind(null, 0));
function exitOnFail(ret, msg) {
function exitOnFail(ret, msg) {
if (ret) {
if (ret) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment