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

8
LINES

< > BotCompany Repo | #1010684 // restartWithDelay - clean-restart VM's main program (in new Java VM)

JavaX fragment (include)

1  
static void restartWithDelay(int delay) {
2  
  O j = getJavaX();
3  
  call(j, 'preKill);
4  
  call(j, 'nohupJavax, smartJoin((S[]) get(j, 'fullArgs)), call(j, 'fullVMArguments));
5  
  sleep(delay);
6  
  System.exit(0);
7  
  sleep();
8  
}

Author comment

Began life as a copy of #1003781

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: #1010684
Snippet name: restartWithDelay - clean-restart VM's main program (in new Java VM)
Eternal ID of this version: #1010684/1
Text MD5: 6ab6bd8661d0b714dcd066325d61c833
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-24 23:48:57
Source code size: 223 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 408 / 454
Referenced in: [show references]