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)

1  
static L<Process> backtickToFile_dependent_procs = synchroList();
2  
3  
static void backtickToFile_dependent(S cmd, File outFile) ctex {
4  
  Process process = backtickToFile_noWait(cmd, outFile);
5  
  backtickToFile_dependent_procs.add(process);
6  
  try {
7  
    print("backtickToFile_dependent Process #" + l(backtickToFile_dependent_procs));
8  
    process.waitFor();
9  
    backtick_exitValue = process.exitValue();
10  
  } finally {
11  
    backtickToFile_dependent_procs.remove(process);
12  
    print("backtickToFile_dependent done " + l(backtickToFile_dependent_procs));
13  
  }
14  
}
15  
16  
static void cleanMeUp_backtickToFile_dependent() {
17  
  print("cleanMeUp_backtickToFile_dependent " + l(backtickToFile_dependent_procs));
18  
  for (Process p : backtickToFile_dependent_procs) {
19  
    print("Destroying child process: " + p);
20  
    p.destroy();
21  
  }
22  
}

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: 474 / 509
Version history: 6 change(s)
Referenced in: [show references]