Do not add newline to sys:exe
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user