From e161d2f0cb02b4116ad3cd585e41ca9b634e0226 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 29 Apr 2014 09:24:36 +0100 Subject: [PATCH] Disable Watchdog when restarting --- .../0057-Watchdog-Thread.patch | 277 +++++++++++++++++- 1 file changed, 274 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0057-Watchdog-Thread.patch b/CraftBukkit-Patches/0057-Watchdog-Thread.patch index 444008b573..2eb219b53e 100644 --- a/CraftBukkit-Patches/0057-Watchdog-Thread.patch +++ b/CraftBukkit-Patches/0057-Watchdog-Thread.patch @@ -1,9 +1,277 @@ -From ae16eaf1009911e4f515a72b37cbb2bf55a32a0c Mon Sep 17 00:00:00 2001 +From 91e137f00b53a82e6acc86c8eb6f773e79aa8875 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Feb 2013 12:33:20 +1100 Subject: [PATCH] Watchdog Thread. +diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml +new file mode 100644 +index 0000000..d7b8891 +--- /dev/null ++++ b/dependency-reduced-pom.xml +@@ -0,0 +1,262 @@ ++ ++ ++ ++ spigot-parent ++ org.spigotmc ++ dev-SNAPSHOT ++ ++ 4.0.0 ++ org.spigotmc ++ spigot ++ Spigot ++ 1.7.9-R0.1-SNAPSHOT ++ http://www.spigotmc.org ++ ++ install ++ ++ ++ ++ org.eclipse.m2e ++ lifecycle-mapping ++ 1.0.0 ++ ++ ++ ++ ++ ++ com.lukegb.mojo ++ gitdescribe-maven-plugin ++ [1.3,) ++ ++ gitdescribe ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ com.lukegb.mojo ++ gitdescribe-maven-plugin ++ 1.3 ++ ++ ++ compile ++ ++ gitdescribe ++ ++ ++ ++ ++ git-Spigot- ++ ++ ++ ++ ++ maven-jar-plugin ++ 2.1 ++ ++ ++ ++ org.bukkit.craftbukkit.Main ++ CraftBukkit ++ ${describe} ++ Bukkit Team ++ Bukkit ++ ${api.version} ++ Bukkit Team ++ true ++ ++ ++ ++ net/bukkit/ ++ ++ true ++ ++ ++ ++ com/bukkit/ ++ ++ true ++ ++ ++ ++ org/bukkit/ ++ ++ true ++ ++ ++ ++ ++ ++ ++ ++ maven-shade-plugin ++ 2.1 ++ ++ ++ package ++ ++ shade ++ ++ ++ ++ ++ org.bouncycastle ++ net.minecraft.v${minecraft_version}.org.bouncycastle ++ ++ ++ joptsimple ++ org.bukkit.craftbukkit.libs.joptsimple ++ ++ ++ jline ++ org.bukkit.craftbukkit.libs.jline ++ ++ ++ org.ibex ++ org.bukkit.craftbukkit.libs.org.ibex ++ ++ ++ org.gjt ++ org.bukkit.craftbukkit.libs.org.gjt ++ ++ ++ com.google.gson ++ org.bukkit.craftbukkit.libs.com.google.gson ++ ++ ++ org.bukkit.craftbukkit ++ org.bukkit.craftbukkit.v${minecraft_version} ++ ++ org.bukkit.craftbukkit.Main* ++ ++ ++ ++ net.minecraft.server ++ net.minecraft.server.v${minecraft_version} ++ ++ ++ ++ ++ ++ ++ ++ maven-compiler-plugin ++ 2.3.2 ++ ++ 1.6 ++ 1.6 ++ ++ ++ ++ maven-surefire-plugin ++ 2.11 ++ ++ ${basedir}/target/test-server ++ ++ org/bukkit/craftbukkit/updater/BukkitDLUpdaterServiceTest.java ++ org/bukkit/craftbukkit/inventory/ItemStack*Test.java ++ ++ ++ ++ ++ maven-resources-plugin ++ 2.4.3 ++ ++ ++ maps-file ++ package ++ ++ copy-resources ++ ++ ++ ${basedir}/target ++ ++ ++ ${basedir} ++ true ++ ++ maps.yml ++ ++ ++ ++ ++ ++ ++ ++ ++ com.wolvereness ++ overmapped ++ 0.0.2 ++ ++ ++ package ++ ++ map ++ ++ ++ ${basedir}/target/maps.yml ++ ${basedir}/target/${project.artifactId}-${project.version}.jar ++ ${basedir}/target/unmapped-${project.artifactId}-${project.version}.jar ++ ++ ++ ++ ++ ++ ++ ++ ++ repobo-snap ++ http://repo.bukkit.org/content/groups/public ++ ++ ++ ++ ++ bukkit-plugins ++ http://repo.bukkit.org/content/groups/public ++ ++ ++ ++ ++ junit ++ junit ++ 4.11 ++ test ++ ++ ++ hamcrest-core ++ org.hamcrest ++ ++ ++ ++ ++ org.hamcrest ++ hamcrest-library ++ 1.3 ++ test ++ ++ ++ hamcrest-core ++ org.hamcrest ++ ++ ++ ++ ++ ++ 1_7_R3 ++ git-Bukkit- ++ unknown ++ 1.7.9 ++ UTF-8 ++ 4.11 ++ ++ ++ diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 007fb86..51f1761 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java @@ -26,10 +294,10 @@ index 007fb86..51f1761 100644 } diff --git a/src/main/java/org/spigotmc/RestartCommand.java b/src/main/java/org/spigotmc/RestartCommand.java new file mode 100644 -index 0000000..7c086fd +index 0000000..3e4203f --- /dev/null +++ b/src/main/java/org/spigotmc/RestartCommand.java -@@ -0,0 +1,110 @@ +@@ -0,0 +1,113 @@ +package org.spigotmc; + +import java.io.File; @@ -70,6 +338,9 @@ index 0000000..7c086fd + { + System.out.println( "Attempting to restart with " + SpigotConfig.restartScript ); + ++ // Disable Watchdog ++ WatchdogThread.doStop(); ++ + // Kick all players + for ( EntityPlayer p : (List< EntityPlayer>) MinecraftServer.getServer().getPlayerList().players ) + {