Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
a83d1383
Commit
a83d1383
authored
Apr 10, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将杀死的退出状态设置为-100
parent
994e5460
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
MythJobProcess.java
...server/src/main/java/com/byit/process/MythJobProcess.java
+4
-0
No files found.
byit-myth-executor/myth-executor-server/src/main/java/com/byit/process/MythJobProcess.java
View file @
a83d1383
...
@@ -224,6 +224,8 @@ public class MythJobProcess implements Callable<String>{
...
@@ -224,6 +224,8 @@ public class MythJobProcess implements Callable<String>{
log
.
error
(
"尝试杀死失败."
,
e
);
log
.
error
(
"尝试杀死失败."
,
e
);
}
}
}
}
//如果是杀死将退出值改为-100
exitCode
=
-
100
;
return
false
;
return
false
;
}
else
{
}
else
{
throw
new
IllegalStateException
(
"程序不在运行中"
);
throw
new
IllegalStateException
(
"程序不在运行中"
);
...
@@ -255,6 +257,8 @@ public class MythJobProcess implements Callable<String>{
...
@@ -255,6 +257,8 @@ public class MythJobProcess implements Callable<String>{
}
}
}
}
this
.
process
.
destroy
();
this
.
process
.
destroy
();
//如果是杀死将退出值改为-100
exitCode
=
-
100
;
}
else
{
}
else
{
throw
new
IllegalStateException
(
"程序不在运行中"
);
throw
new
IllegalStateException
(
"程序不在运行中"
);
}
}
...
...
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