v0.38.0
This commit is contained in:
1 parent
21aef61dd5
commit
faedd249b8
2 files changed
+2
-2
No files matched your search
@@ -79,7 +79,7 @@ fn signal_headless_reload(data_dir: &Path) -> Result<()> {
|
||||
.trim()
|
||||
.parse()
|
||||
.with_context(|| format!("invalid process id in {}", path.display()))?;
|
||||
ensure!(pid > 1, "invalid process id in {}", path.display());
|
||||
ensure!(pid > 0, "invalid process id in {}", path.display());
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let command = std::fs::read(format!("/proc/{pid}/cmdline")).unwrap_or_default();
|
||||
|
||||
Reference in new issue
Block a user