Skip to content

Commit c0445b9

Browse files
committed
enable nitro
1 parent a750fa7 commit c0445b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcrun/handlers/krun.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ libkrun_exec (void *cookie, libcrun_container_t *container, const char *pathname
414414
yajl_val config_tree = NULL;
415415
pthread_t thread;
416416

417+
kconf->nitro = true;
418+
417419
ret = libkrun_read_vm_config (&config_tree, &err);
418420
if (UNLIKELY (ret < 0))
419421
error (EXIT_FAILURE, -ret, "libkrun VM config exists, but unable to parse");
@@ -529,9 +531,7 @@ libkrun_exec (void *cookie, libcrun_container_t *container, const char *pathname
529531
exit(1);
530532
}
531533

532-
sleep(1);
533-
534-
return -ret;
534+
return 0;
535535
}
536536

537537
/* libkrun_create_kvm_device: explicitly adds kvm device. */

0 commit comments

Comments
 (0)