13
LINES
JavaX fragment (include)
1 | static boolean killProgramID(S idToKill) {
|
2 | print("Killing program " + idToKill);
|
3 | boolean killedAnything = false;
|
4 | for (ProgramScan.Program p : quickBotScan()) {
|
5 | if (p.helloString.startsWith("This is a JavaX VM")
|
6 | && isVMRunningProgram(p.port, idToKill)) {
|
7 | print("Killing port " + p.port + " (program id: " + idToKill + ")");
|
8 | killPortAndWait(p.port);
|
9 | killedAnything = true;
|
10 | }
|
11 | }
|
12 | return killedAnything;
|
13 | } |
Author comment
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID |
Author/Program |
Comment |
Date |
1130 | stefan | TODO: kill a program in a multi-program vm | 2015-10-17 15:06:59 |
add comment
Snippet ID: |
#1001331 |
Snippet name: |
killProgramID |
Eternal ID of this version: |
#1001331/1 |
Text MD5: |
f0d834bd5339675a37abb4f9948da24a |
Author: |
stefan |
Category: |
javax |
Type: |
JavaX fragment (include) |
Public (visible to everyone): |
Yes |
Archived (hidden from active list): |
No |
Created/modified: |
2015-10-17 15:13:08 |
Source code size: |
453 bytes / 13 lines |
Pitched / IR pitched: |
No / Yes |
Views / Downloads: |
811 / 1121 |
Referenced in: |
[show references] |