Add sys scheme to allow inspection of processes. WIP: Signals.

This commit is contained in:
Jeremy Soller 2016-10-13 21:00:51 -06:00
parent 224c43f761
commit d18bf07f3e
9 changed files with 445 additions and 64 deletions

View file

@ -55,6 +55,8 @@ pub struct Context {
pub stack: Option<Memory>,
/// User grants
pub grants: Arc<Mutex<Vec<Grant>>>,
/// The name of the context
pub name: Arc<Mutex<Vec<u8>>>,
/// The current working directory
pub cwd: Arc<Mutex<Vec<u8>>>,
/// Kernel events
@ -87,6 +89,7 @@ impl Context {
heap: None,
stack: None,
grants: Arc::new(Mutex::new(Vec::new())),
name: Arc::new(Mutex::new(Vec::new())),
cwd: Arc::new(Mutex::new(Vec::new())),
events: Arc::new(WaitQueue::new()),
env: Arc::new(Mutex::new(BTreeMap::new())),