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

8
LINES

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

JavaX fragment (include)

1  
static void restartWithDefaultVMArgs() {
2  
  print("\nClean-restarting myself.");
3  
  thread "Clean Restart" {
4  
    callJavaX('preKill);
5  
    nohupJavax(smartJoin((S[]) get(javax(), "fullArgs")), defaultVMArgs());
6  
    System.exit(0);
7  
  }
8  
}

Author comment

Began life as a copy of #1003781

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020750
Snippet name: restartWithDefaultVMArgs - clean-restart VM's main program (in new Java VM)
Eternal ID of this version: #1020750/3
Text MD5: b35ba55d65c71432eef0086c4eb14e8c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-01 18:19:05
Source code size: 240 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 315
Version history: 2 change(s)
Referenced in: [show references]