|
@@ -358,12 +358,12 @@ export function pythonupload(code, val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|
|
@@ -667,12 +667,12 @@ export function pythonuploadfile(code, namepath, val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|
|
@@ -765,12 +765,12 @@ export function pythonuploadfilebyfile(file, namepath, val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|
|
@@ -852,12 +852,12 @@ export function uploadfile(code, namepath, val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|
|
@@ -932,12 +932,12 @@ export function pythonreset(val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|
|
@@ -1012,12 +1012,12 @@ export function getmcnty(val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|
|
@@ -1105,12 +1105,12 @@ export function pythoncmd(code, val, socket) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
try {
|
|
|
if (_childexec && !_childexec.killed) {
|
|
|
- try {
|
|
|
- _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
- }
|
|
|
- catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // _childexec.stdin.write('\x03\x02\x03\x1D');
|
|
|
+ // }
|
|
|
+ // catch (e) {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
_childexec.kill('SIGKILL');
|
|
|
_childexec.killed = true;
|
|
|
}
|