Commit bea0f9d
Roy Lin
fix(pool): gate snapshot-fork trigger_snapshot to unix (Windows build)
warm_pool::trigger_snapshot connects to libkrun's snapshot trigger socket via
tokio::net::UnixStream, which does not exist on Windows (E0433). Snapshot-fork
is a Linux/KVM feature, so gate the real impl to #[cfg(unix)] and add a
#[cfg(not(unix))] stub that errors — mirroring the existing cfg(not(windows))
pattern in the pool CLI. Fixes the v2.1.0 Build Windows (WHPX) failure.1 parent 33511b0 commit bea0f9d
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
503 | 507 | | |
504 | 508 | | |
505 | 509 | | |
| |||
534 | 538 | | |
535 | 539 | | |
536 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
537 | 551 | | |
538 | 552 | | |
539 | 553 | | |
| |||
0 commit comments