MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / install_signal_forwarding

Function install_signal_forwarding

crates/openshell-driver-vm/src/runtime.rs:1303–1315  ·  view source on GitHub ↗
(pid: i32)

Source from the content-addressed store, hash-verified

1301}
1302
1303fn install_signal_forwarding(pid: i32) {
1304 unsafe {
1305 libc::signal(
1306 libc::SIGINT,
1307 forward_signal as *const () as libc::sighandler_t,
1308 );
1309 libc::signal(
1310 libc::SIGTERM,
1311 forward_signal as *const () as libc::sighandler_t,
1312 );
1313 }
1314 CHILD_PID.store(pid, Ordering::Relaxed);
1315}
1316
1317/// Async-signal-safe handler that forwards SIGTERM to every process we
1318/// own: the libkrun VM worker and the gvproxy helper. We cannot rely on

Callers 2

run_qemu_vmFunction · 0.85
run_libkrun_vmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected