hypha: init will now watch process in background

This commit is contained in:
Alex Zenla
2024-01-31 01:40:42 -08:00
parent b6af5f54bd
commit 86c512474a
7 changed files with 77 additions and 20 deletions

View File

@ -273,8 +273,8 @@ impl BootImageLoader for ElfImageLoader {
copy_slice.len()
);
copy(segment_dst, copy_slice);
if memsz - filesz > 0 {
let remaining = &mut segment_dst[filesz as usize..(memsz - filesz) as usize];
if (memsz - filesz) > 0 {
let remaining = &mut segment_dst[filesz as usize..memsz as usize];
debug!(
"ElfImageLoader load fill_zero hdr={:?} dst={:#x} len={}",
header.p_offset,