static boolean killProgramID(S idToKill) { print("Killing program " + idToKill); boolean killedAnything = false; for (ProgramScan.Program p : quickBotScan()) { if (p.helloString.startsWith("This is a JavaX VM") && isVMRunningProgram(p.port, idToKill)) { print("Killing port " + p.port + " (program id: " + idToKill + ")"); killPortAndWait(p.port); killedAnything = true; } } return killedAnything; }
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
ID | Author/Program | Comment | Date |
---|---|---|---|
1130 | stefan | TODO: kill a program in a multi-program vm | 2015-10-17 15:06:59 |
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: | 908 / 1219 |
Referenced in: | #1001352 - restartProgramID #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015451 - killProgram - synonym of killProgramID #3000202 - Answer for stefanreich (>> T conversion bot) #3000238 - Answer for stefanreich (>> t power bot) #3000382 - Answer for ferdie (>> t = 1, f = 0) |