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)

static void restartWithDelay(int delay) {
  O j = getJavaX();
  call(j, 'preKill);
  call(j, 'nohupJavax, smartJoin((S[]) get(j, 'fullArgs)), call(j, 'fullVMArguments));
  sleep(delay);
  System.exit(0);
  sleep();
}

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: 347 / 388
Referenced in: [show references]