Skip to content

Commit 56e1b02

Browse files
Fix off by one in virtiofsdCount
1 parent 972e6fd commit 56e1b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos-modules/microvm/virtiofsd/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ in
2121
"eventlistener:notify" = {
2222
command = pkgs.writers.writePython3 "supervisord-event-handler" { } (
2323
pkgs.replaceVars ./supervisord-event-handler.py {
24-
virtiofsdCount = builtins.length virtiofsShares;
24+
# 1 for the event handler process
25+
virtiofsdCount = 1 + builtins.length virtiofsShares;
2526
}
2627
);
2728
events = "PROCESS_STATE";

0 commit comments

Comments
 (0)