|
|
@ -51,7 +51,7 @@ impl Thread {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
memory_set: MemorySet::new(),
|
|
|
|
memory_set: MemorySet::new(),
|
|
|
|
files: BTreeMap::default(),
|
|
|
|
files: BTreeMap::default(),
|
|
|
|
cwd: String::new(),
|
|
|
|
cwd: String::from("/"),
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -67,7 +67,7 @@ impl Thread {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
memory_set,
|
|
|
|
memory_set,
|
|
|
|
files: BTreeMap::default(),
|
|
|
|
files: BTreeMap::default(),
|
|
|
|
cwd: String::new(),
|
|
|
|
cwd: String::from("/"),
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -146,7 +146,7 @@ impl Thread {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
memory_set,
|
|
|
|
memory_set,
|
|
|
|
files,
|
|
|
|
files,
|
|
|
|
cwd: String::new(),
|
|
|
|
cwd: String::from("/"),
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -178,7 +178,7 @@ impl Thread {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
proc: Arc::new(Mutex::new(Process {
|
|
|
|
memory_set,
|
|
|
|
memory_set,
|
|
|
|
files: self.proc.lock().files.clone(),
|
|
|
|
files: self.proc.lock().files.clone(),
|
|
|
|
cwd: String::new(),
|
|
|
|
cwd: self.proc.lock().cwd.clone(),
|
|
|
|
// TODO: duplicate sockets for child process
|
|
|
|
// TODO: duplicate sockets for child process
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
sockets: SocketSet::new(vec![])
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|