Do not add newline to sys:exe

This commit is contained in:
Jeremy Soller
2019-12-22 18:23:36 -07:00
parent 72ea559da4
commit 57a6359333

View File

@@ -4,13 +4,12 @@ use crate::context;
use crate::syscall::error::{Error, ESRCH, Result};
pub fn resource() -> Result<Vec<u8>> {
let mut name = {
let name = {
let contexts = context::contexts();
let context_lock = contexts.current().ok_or(Error::new(ESRCH))?;
let context = context_lock.read();
let name = context.name.lock();
name.clone().into_vec()
};
name.push(b'\n');
Ok(name)
}