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 | } |
Began life as a copy of #1001330
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
1 comment(s) hidden. show
| 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: | 1144 / 1463 |
| Referenced in: | [show references] |