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)

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

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: 111 / 131
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1020750 & http://1020750.tinybrain.de