1 | static L<Int> hardKillProgram(fS progID, O... _) {
|
2 | print("Trying to hard-kill program " + fsI(progID));
|
3 | ret os_killAll(func(S cmd) -> Bool {
|
4 | if (regexpFinds("[/ ]" + psI(progID), cmd)) {
|
5 | print("! KILLING " + cmd);
|
6 | true; |
7 | } |
8 | false; |
9 | }, _); |
10 | } |
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: | 763 / 790 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |