Skip to content

Commit 33afe65

Browse files
authored
Remove name from surrogate job obj (#1092)
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent 0a29546 commit 33afe65

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use windows::Win32::System::SystemServices::NUMA_NO_PREFERRED_NODE;
3838
use windows::Win32::System::Threading::{
3939
CREATE_SUSPENDED, CreateProcessA, PROCESS_INFORMATION, STARTUPINFOA,
4040
};
41-
use windows::core::{PCSTR, s};
41+
use windows::core::PCSTR;
4242

4343
use super::surrogate_process::SurrogateProcess;
4444
use super::wrappers::{HandleWrapper, PSTRWrapper};
@@ -285,12 +285,7 @@ pub(crate) fn get_surrogate_process_manager() -> Result<&'static SurrogateProces
285285
fn create_job_object() -> Result<HandleWrapper> {
286286
let security_attributes: SECURITY_ATTRIBUTES = Default::default();
287287

288-
let job_object = unsafe {
289-
CreateJobObjectA(
290-
Some(&security_attributes),
291-
s!("HyperlightSurrogateJobObject"),
292-
)?
293-
};
288+
let job_object = unsafe { CreateJobObjectA(Some(&security_attributes), PCSTR::null())? };
294289

295290
let mut job_object_information = JOBOBJECT_EXTENDED_LIMIT_INFORMATION {
296291
BasicLimitInformation: JOBOBJECT_BASIC_LIMIT_INFORMATION {

0 commit comments

Comments
 (0)