Skip to content
Snippets Groups Projects
Verified Commit 57a63593 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Do not add newline to sys:exe

parent 72ea559d
No related branches found
No related tags found
No related merge requests found
...@@ -4,13 +4,12 @@ use crate::context; ...@@ -4,13 +4,12 @@ use crate::context;
use crate::syscall::error::{Error, ESRCH, Result}; use crate::syscall::error::{Error, ESRCH, Result};
pub fn resource() -> Result<Vec<u8>> { pub fn resource() -> Result<Vec<u8>> {
let mut name = { let name = {
let contexts = context::contexts(); let contexts = context::contexts();
let context_lock = contexts.current().ok_or(Error::new(ESRCH))?; let context_lock = contexts.current().ok_or(Error::new(ESRCH))?;
let context = context_lock.read(); let context = context_lock.read();
let name = context.name.lock(); let name = context.name.lock();
name.clone().into_vec() name.clone().into_vec()
}; };
name.push(b'\n');
Ok(name) Ok(name)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment