Keep long-identity control sockets within sun_path
This commit is contained in:
parent
247819250b
commit
684ca52a01
1 changed files with 3 additions and 10 deletions
|
|
@ -60,9 +60,7 @@ struct TestDirectory(PathBuf);
|
|||
impl TestDirectory {
|
||||
fn new(label: &str) -> Self {
|
||||
let sequence = NEXT_DIRECTORY.fetch_add(1, Ordering::Relaxed);
|
||||
let parent = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/t/control");
|
||||
std::fs::create_dir_all(&parent).unwrap();
|
||||
let parent = parent.canonicalize().unwrap();
|
||||
let parent = PathBuf::from("/tmp");
|
||||
let path = parent.join(format!(
|
||||
"lazaret-control-{label}-{}-{sequence}",
|
||||
std::process::id()
|
||||
|
|
|
|||
Loading…
Reference in a new issue