3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-06 00:00:47 +01:00

Graceful fallback when /tmp is amounted noexec on Linux

Fixes #260
Dieser Commit ist enthalten in:
Andrew Steinborn 2019-11-29 12:03:38 -05:00
Ursprung 2baa162d91
Commit d8dba8a96c

Datei anzeigen

@ -37,7 +37,12 @@ public class Natives {
// Well, it doesn't matter... // Well, it doesn't matter...
} }
})); }));
try {
System.load(tempFile.toAbsolutePath().toString()); System.load(tempFile.toAbsolutePath().toString());
} catch (UnsatisfiedLinkError e) {
throw new NativeSetupException("Unable to load native " + tempFile.toAbsolutePath(), e);
}
} catch (IOException e) { } catch (IOException e) {
throw new NativeSetupException("Unable to copy natives", e); throw new NativeSetupException("Unable to copy natives", e);
} }