parent
1af4e256c9
commit
c996c8ff49
|
@ -3978,6 +3978,7 @@ name = "solana-sys-tuner"
|
||||||
version = "0.22.0"
|
version = "0.22.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"nix 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"nix 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -12,6 +12,7 @@ publish = true
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.33.0"
|
clap = "2.33.0"
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
|
libc = "0.2.66"
|
||||||
semver = "0.9.0"
|
semver = "0.9.0"
|
||||||
solana-logger = { path = "../logger", version = "0.22.0" }
|
solana-logger = { path = "../logger", version = "0.22.0" }
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@ fn tune_system() {
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
fn main() {
|
fn main() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
unsafe { libc::umask(0o077) };
|
||||||
if let Err(e) = std::fs::remove_file(solana_sys_tuner::SOLANA_SYS_TUNER_PATH) {
|
if let Err(e) = std::fs::remove_file(solana_sys_tuner::SOLANA_SYS_TUNER_PATH) {
|
||||||
if e.kind() != std::io::ErrorKind::NotFound {
|
if e.kind() != std::io::ErrorKind::NotFound {
|
||||||
panic!("Failed to remove stale socket file: {:?}", e)
|
panic!("Failed to remove stale socket file: {:?}", e)
|
||||||
|
|
Loading…
Reference in New Issue