Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1014844 // killProcess

JavaX fragment (include)

static void killProcess(java.lang.Process p) {
  if (p != null) p.destroy();
}

svoid killProcess(S pid) {
  L<Int> list = ll(parseFirstInt(pid));
  if (first(list) == 0) ret;
  if (isMac()) fail("boohoo");
  else if (isWindows()) windows_killProcesses(list);
  else unix_killProcesses(list);
}

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: #1014844
Snippet name: killProcess
Eternal ID of this version: #1014844/4
Text MD5: 0aeb31e44e266386d8a6da3adf2c48c9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-14 07:01:50
Source code size: 304 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 303
Version history: 3 change(s)
Referenced in: [show references]