Command: add comment about wait blocking on Windows

This commit is contained in:
Will Pragnell
2025-01-09 21:57:22 -08:00
parent c3e1c4e2f1
commit bb5777ce7c

View File

@ -306,6 +306,7 @@ fn setupFd(src: File.Handle, target: i32) !void {
}
/// Wait for the command to exit and return information about how it exited.
/// "block" is currently not respected on Windows.
pub fn wait(self: Command, block: bool) i32 {
if (comptime builtin.os.tag == .windows) {
// Block until the process exits. This returns immediately if the