static L<Int> hardKillProgram(fS progID, O... _) { print("Trying to hard-kill program " + fsI(progID)); ret os_killAll(func(S cmd) -> Bool { if (regexpFinds("[/ ]" + psI(progID), cmd)) { print("! KILLING " + cmd); true; } false; }, _); }
Began life as a copy of #1009619
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
No comments. add comment
| Snippet ID: | #1012708 |
| Snippet name: | hardKillProgram - might kill too much, but it sure is thorough. add level := 9 to kill harder on Linux |
| Eternal ID of this version: | #1012708/4 |
| Text MD5: | 560abf637d5cf47115afd582844c06ce |
| Author: | stefan |
| Category: | javax / os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-05-15 17:30:45 |
| Source code size: | 276 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 764 / 790 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |