diff options
author | 2022-10-06 03:02:07 -0700 | |
---|---|---|
committer | 2022-10-06 03:02:07 -0700 | |
commit | c880c53199f2c59f4444362e6ae1fa210733c48f (patch) | |
tree | 676bb4eb17d16c75f655430f8ced7c37f4964eea | |
parent | 75371d14627f5e42285c2cc3f199ef13ebda23a8 (diff) | |
download | bun-c880c53199f2c59f4444362e6ae1fa210733c48f.tar.gz bun-c880c53199f2c59f4444362e6ae1fa210733c48f.tar.zst bun-c880c53199f2c59f4444362e6ae1fa210733c48f.zip |
Fix failing linux build
-rw-r--r-- | src/bun.js/webcore/streams.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig index 6f79f97b4..c72edd437 100644 --- a/src/bun.js/webcore/streams.zig +++ b/src/bun.js/webcore/streams.zig @@ -3431,8 +3431,10 @@ pub const FileBlobLoader = struct { this.has_adjusted_pipe_size_on_linux = true; var pipe_len: c_int = 0; _ = std.c.fcntl(this.fd, F_GETPIPE_SZ, &pipe_len); + if (pipe_len <= 16 * std.mem.page_size) { - _ = std.c.fcntl(this.fd, F_SETPIPE_SZ, 512 * 1024); + var out_size: c_int = 512 * 1024; + _ = std.c.fcntl(this.fd, F_SETPIPE_SZ, &out_size); } } } |