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

22
LINES

< > BotCompany Repo | #1006745 // backtickToFile_dependent - not used

JavaX fragment (include)

static L<Process> backtickToFile_dependent_procs = synchroList();

static void backtickToFile_dependent(S cmd, File outFile) ctex {
  Process process = backtickToFile_noWait(cmd, outFile);
  backtickToFile_dependent_procs.add(process);
  try {
    print("backtickToFile_dependent Process #" + l(backtickToFile_dependent_procs));
    process.waitFor();
    backtick_exitValue = process.exitValue();
  } finally {
    backtickToFile_dependent_procs.remove(process);
    print("backtickToFile_dependent done " + l(backtickToFile_dependent_procs));
  }
}

static void cleanMeUp_backtickToFile_dependent() {
  print("cleanMeUp_backtickToFile_dependent " + l(backtickToFile_dependent_procs));
  for (Process p : backtickToFile_dependent_procs) {
    print("Destroying child process: " + p);
    p.destroy();
  }
}

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: #1006745
Snippet name: backtickToFile_dependent - not used
Eternal ID of this version: #1006745/7
Text MD5: 67f8114e09457ff5af71a399f5c53985
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-21 11:30:13
Source code size: 828 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 473 / 507
Version history: 6 change(s)
Referenced in: [show references]