refactor: exit
This commit is contained in:
parent
f5b1c2487b
commit
d2aec21de6
|
@ -34,5 +34,4 @@ export default function createDockerContainer(latus) {
|
||||||
);
|
);
|
||||||
const {pid} = spawn('docker', args, {stdio: 'ignore'});
|
const {pid} = spawn('docker', args, {stdio: 'ignore'});
|
||||||
process.on('exit', () => process.kill(pid));
|
process.on('exit', () => process.kill(pid));
|
||||||
process.on('SIGINT', () => process.exit());
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ export default async function createDockerContainer(latus) {
|
||||||
);
|
);
|
||||||
const {pid} = spawn('docker', args, {stdio: 'ignore'});
|
const {pid} = spawn('docker', args, {stdio: 'ignore'});
|
||||||
process.on('exit', () => process.kill(pid));
|
process.on('exit', () => process.kill(pid));
|
||||||
process.on('SIGINT', () => process.exit());
|
|
||||||
// eslint-disable-next-line no-constant-condition
|
// eslint-disable-next-line no-constant-condition
|
||||||
while (true) {
|
while (true) {
|
||||||
const client = createClient(latus);
|
const client = createClient(latus);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user